G+_Rud Dog Posted October 23, 2018 Share Posted October 23, 2018 My Synology DS918+ is reporting an urgent security change for my ssh login. "Change the port from the default 22 to something else. " Changing the port in the Synology is simple but don't know how to change the port I log in with via Powershell. I am assuming I need to change the port somewhere in the Powershell program? Link to comment Share on other sites More sharing options...
G+_Akira Yamanita Posted October 23, 2018 Share Posted October 23, 2018 If you're using OpenSSH in PowerShell: ssh user@host:port e.g. ssh kh@192.168.1.20:928 Assumes the user is "kh", the host is 192.168.1.20, and the SSH port is 928. Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted October 23, 2018 Author Share Posted October 23, 2018 Akira Yamanita Tried the following: This worked using port 22 PS C:> ssh ruddog@192.168.86.185 ruddog@192.168.86.185's password: ruddog@NAS:~$ This failed the port was changed on NAS Server to 1492 PS C:> ssh ruddog@192.168.86.185:1492 ssh: Could not resolve hostname 192.168.86.185:1492: Name or service not known Thank you for your help. Link to comment Share on other sites More sharing options...
G+_Akira Yamanita Posted October 23, 2018 Share Posted October 23, 2018 If it doesn’t like that format, try the -p parameter. ssh ruddog@192.168.86.185 -p 1492 Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted October 23, 2018 Author Share Posted October 23, 2018 Akira Yamanita Bingo! Thank you, Akira. Link to comment Share on other sites More sharing options...
Recommended Posts