Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.59 KB

lab-report-1.md

File metadata and controls

37 lines (30 loc) · 1.59 KB

Remote Access Tutorial

Step 1 : Download Visual Studio code from Link

Download Image Download Image2

Step 2:

    1. Terminal → New Terminal menu option
    1. Type ssh [email protected] where zz is replaced by your username letters.
    1. When Prompted for surety to continue, type yes. Then enter the password. Image3

Step 3: Try using some commands in terminal :

    1. For Example, ls and ls < directory > :
    1. Here, List of folders in group is only perl5 so commands ls and ls gives same output
  • Image9

Step 4: Copying files from your own desktop to server.

    1. Writing the code first ,
    1. Using scp to copy
    1. logging into server using ssh and username
    1. checking the list on server using ls command
    1. Logging out using exit
  • Image4

Step 5 : To avoid using password again and again after using commands like scp, we setup a public key ( on server ) and private key ( on desktop )

    1. Type ssh-keygen
    1. Enter file when prompted. Here,

    Enter file in which to save the key (/home/linux/ieng6/cs15lsp22/cs15lsp22aaq/.ssh/id_rsa): /home/linux/ieng6/cs15lsp22/cs15lsp22aaq/.ssh/id_rsa

Image5

Step 6: Optimizing Remote Running

  • To use commands already used earlier ( or snippets of it ) , click UP arrow key.
  • To enter multiple commands in a single line, use semicolon as a separator.
  • To run a command directly on the server, type ssh “”
  • Image7
  • Image8