Resource icon

Tutorial How to SSH into a NAS?

Currently reading
Tutorial How to SSH into a NAS?

SynoMan

Administrator
Moderator
Founder
SynoMan submitted a new resource:

How to SSH into a NAS? - A tutorial on how to SSH into a Synology NAS

In DSM go to Control Panel > Terminal & SNMP > Terminal tab


View attachment 685


Check Enable SSH service and set your port.


Open Terminal (Mac) (on Windows machine open CMD (Command Prompt) or PuTTY program for instance) and type:

ssh [email protected]_ip -pSSH_post_number

Tap Enter.


Example:
ssh [email protected] -p22

Now you are in your NAS.


This video can be helpful:


Read more about this resource...
 
1,474
640
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Just one suggestion here. Change the default port (22) to something else (especially if remote access is enabled) and firewall it.
SSH is enabled for users with Admin privileges, so it’s scary powerful.
 

fredbert

Moderator
NAS Support
Subscriber
1,615
673
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Another suggestion: SSH and SFTP don't have to have the same port. If you configure SSH on port XXX and SFTP on YYY then SSH will reject connections on YYY and vice versa.

So if you must use SFTP from the Internet then you don't have to expose command line access to SSH.
 

jeyare

Subscriber
1,587
537
for Win based users:
MobaXterm
it’s portable and also desktop ver.
include graphical SFTP browser, it will automatically pop up in order to directly edit your remote files and many others useful (not just SSH) features in single box
and free for common usage
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top