Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 953 Bytes

lab-report-3-week-6.md

File metadata and controls

38 lines (24 loc) · 953 Bytes

Lab Report 3 Week 6

Streamlining ssh Configuration

Show your .ssh/config file, and how you edited it (with VScode, another program, etc)

Image

Access the .ssh folder which is in your home. Type: notepad config. To create the file and open it in a notepad. Copy the text below and replace zzz with your id.

Host ieng6
    HostName ieng6.ucsd.edu
    User cs15lwi22zzz
    IdentityFile ~/.ssh/id_rsa

Show the ssh command logging you into your account using just the alias you chose.

Image

Now just by typing the command: ssh ieng6 loggs into your remote acccess.

Show an scp command copying a file to your account using just the alias you chose.

Image

This now makes all commands requiring ssh much faster. Instead of having to type:

scp fileToMove.txt [email protected]:~/

You can type:

scp fileToMove.txt ieng6:~/