Thursday, 10 September 2015

Some useful commands about SSH under Linux

If you are travelling constantly like me, then remote login would be a daily routine. So here are some commands you might find useful when working with SSH.

1. Login
Suppose the username on the server is 'boris', then open a terminal and put:

                 ssh boris@xxx.ee.university.com

That is username@host_domain.

Then a password is required and now you are in!

2. Download files from the Server to the local computer
If your current teminal are connected to the server now, start a new one without ssh connection. To download to the local computer, the working session must be locally. Then put:

       scp boris@xxx.ee.university.com:/home/employees/boris/... /home/myLocalMachine/work/...

That is scp theSameWithLogin:ServerFilePath LocalFilePath

To  be continued......

No comments:

Post a Comment