Resource icon

Tutorial How to SSH into a NAS?

Currently reading
Tutorial How to SSH into a NAS?

SynoMan

Administrator
Moderator
Founder
1,414
815
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 username_on_nas@NAS_ip -pSSH_post_number

Tap Enter.


Example:
ssh [email protected] -p22

Now you are in your NAS.


This video can be helpful:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


Read more about this resource...
 
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.
 
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

Hi geekau, I am trying to do the same thing as you mentioned here following your steps. But I encountered...
Replies
4
Views
1,650
SynoMan submitted a new resource: NextCloud on Synology NAS using Docker compose (with Portainer) - The...
Replies
0
Views
2,266
I exported the NAS2 cert and imported it over to NAS1, and then set up NAS1 cert configuration to...
Replies
8
Views
1,992
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 3 - Accessing Mobile Apps via...
Replies
0
Views
862
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 2 - Port 443 & Reverse Proxy - A...
Replies
0
Views
1,323
NAS Newbie submitted a new resource: NAS Remote Access for Newbies: Part 1 - LAN Overview & Port...
Replies
0
Views
2,140
jeyare updated Setup consideration: NAS Disks vs LAN Environment with a new update entry: Chapter 2...
Replies
1
Views
1,596

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Back
Top