WahomeKezia / Demowith_issues

0 stars 0 forks source link

Getting Started! #1

Open WahomeKezia opened 1 year ago

WahomeKezia commented 1 year ago

Getting started

Possible Error at this point Check if the file named in your username in the directory cd home , ls -a If not there , the system throws an error that not such file in found in the directory . To resolve this , create mkdir username or request the remote server admin to create the file.

I copied the key and add it to Github setting --> ssh and GPU key Add new ssh key

This will allow me to securely connect to GitHub to the server without having to enter the remote username and password every time

Resources I found useful to understand :

WahomeKezia commented 1 year ago

Getting started

  • [x] First things first Set up my Virtual Machine Commands used ssh ssh username@IP address password Note : The user name and password were provided by the server admin The ssh creates a communication channel between my local host and the server virtual machine (a Linux system) This will ensure I am working on Linux and creating my development variable in the Linux system
  • [x] Creating SSH Keys ssh-keygen Expected Output Output Generating public/private rsa key pair. Enter file in which to save the key (/home/username/.ssh/id_rsa):

Possible Error at this point Check if the file named in your username in the directory cd home , ls -a If not there , the system throws an error that not such file in found in the directory . To resolve this , create mkdir username or request the remote server admin to create the file.

  • [x] After creating ssh key ,I copied the SSH Public Key to my remote server manually using ssh-copy-id ssh-copy-id username@IP adress cat ~/.ssh/id_rsa.pub This will output the public key

I copied the key and add it to Github setting --> ssh and GPU key Add new ssh key

  • [x] Authenticating to Your Server Using SSH Keys ssh username@remote_host This allows me now to log into the server without the account’s password.
  • [x] Last Step I also created a ssh key for my local host With local host as root user , I repeated the same process from ssh-keygen and saved the public key on Github

This will allow me to securely connect to GitHub to the server without having to enter the remote username and password every time

Resources I found useful to understand :

testing