Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 798 Bytes

SSH-access.md

File metadata and controls

36 lines (24 loc) · 798 Bytes

Using screen to run commands/script on the back ground

screen allows, banally, to run a command and then close the remote connection while keeping the monster working for you.

  • create a screen session
screen -S name-of-the-screen
  • exit a screen session with the keyboard combination ctrl + a + d

  • you can create multiple screen session, to list the working screen session

screen -ls
  • enter a specific screen session
screen -r name-of-the-screen
  • terminate a screen session while in it
exit

Exchange files from and to remote

  • move around a directory recursively (in the example, from the labMonster to local computer)
scp -r user@ssh.example.com:/path/to/remote/source /path/to/local/destination