This looks at how to SSH and SCP on default and non-standard ports
SSH
running on default port is 22.
ssh <user>@<host> (e.i ssh foouser@barserver)
running on non-standard port.
ssh -p <port> <user>@<host> (e.i ssh -p 2000 foouser@barserver)
SCP
running on default port is 22.
scp <file> <user>@<host>:<host-path-to-copy> (e.i scp foo.txt foouser@barserver:/home/foouser/directory1)
running on non-standard port.
scp -P <port> <file> <user>@<host>:<host-path-to-copy> (e.i scp -P 2000 foo.txt foouser@barserver:/home/foouser/directory1)
No comments:
Post a Comment