# Working with remote

**Login to a remote machine**

* &#x20;`ssh _user@_YOUR_IP`

  With an appropriate permission key: `ssh -i YOUR_KEY user@_YOUR_IP`

**To generate your ssh key** : `ssh-keygen` \[task to do only once in a lifetime on a machine]

**Read the public key generated** by above: `cat ~/.ssh/id_rsa.pub`

* To transfer a file/folder from one machine to other
  * scp : <http://www.hypexr.org/linux_scp_help.php>&#x20;
