Open WahomeKezia opened 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 OutputOutput 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 , createmkdir 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 keyI 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 GithubThis 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
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 OutputOutput 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 , createmkdir username
or request the remote server admin to create the file.ssh-copy-id
ssh-copy-id username@IP adress
cat ~/.ssh/id_rsa.pub
This will output the public keyI 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 GithubThis 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 :