How could I access hosts running SSH daemon with a different port number such as 747 ? SSH can support SFTP and SCP on the same daemon so the commad syntax for SSH, SFTP and SCP should also be remembered. The answers are here below :
#ssh -p 747 user@abc.com
#sftp -oPort=747 user@abc.com
#scp -P 747 user@abc.com:/directory/file .
The small and capital letter of p means different things, in SCP, -p means preserving modification times, access times of file whereas -P specifies a port number. For SSH, no -P exist, just -p will be ok for port number.
No comments:
Post a Comment