Resource icon

Tutorial How to SSH into a NAS?

Currently reading
Tutorial How to SSH into a NAS?

SynoMan

Administrator
Moderator
Founder
1,176
682
www.synoforum.com
NAS
DS720+, DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
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...
 
2,239
945
NAS
DS220+ : DS1019+ : DS920+ : DS118 : 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
4,201
1,672
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
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
2,486
834
NAS
Synology, TrueNAS
Operating system
  1. Linux
  2. Windows
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.

Similar threads

Replies
3
Views
405
SynoMan submitted a new resource: NextCloud on Synology NAS using Docker compose (with Portainer) - The...
Replies
0
Views
1,443
I exported the NAS2 cert and imported it over to NAS1, and then set up NAS1 cert configuration to...
Replies
8
Views
1,154
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 3 - Accessing Mobile Apps via...
Replies
0
Views
655
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 2 - Port 443 & Reverse Proxy - A...
Replies
0
Views
764
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 1 - LAN Overview & Port...
Replies
0
Views
1,279
jeyare updated Setup consideration: NAS Disks vs LAN Environment with a new update entry: Chapter 2...
Replies
1
Views
1,045

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top