Working with SSH - LabMazurokCom/Blockchain GitHub Wiki

Connection to remote machine via SSH

  1. Start the terminal

  2. ssh REMOTE_ADDRESS -l USER_NAME

You will be asked to print USER_NAME's password.

To stop connection print exit in terminal.


Copying files from local machine to remote machine via SSH

scp FILE_NAME REMOTE_USER_NAME@REMOTE_ADDRESS:PATH

Example. Here's how you can copy local file my_file.txt to remote address 192.168.1.1. with user admin so that it will be copied to folder test1/test2 and named newfile.txt:

scp my_file.txt [email protected]:test1/test2/newfile.txt

To copy folder add -r flag.