Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add existing key to ssh

cp /path/to/my/key/id_rsa ~/.ssh/id_rsa
cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub
# change permissions on file
sudo chmod 600 ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/id_rsa.pub
# start the ssh-agent in the background
eval $(ssh-agent -s)
# make ssh agent to actually use copied key
ssh-add ~/.ssh/id_rsa
Comment

add key file to ssh

sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]
Comment

ssh add new key

$ eval "$(ssh-agent -s)"
> Agent pid 59566
Comment

PREVIOUS NEXT
Code Example
Shell :: commitlint install 
Shell :: git add, commit and push in one command 
Shell :: git squash commits 
Shell :: rename github repository command line 
Shell :: linux add alias 
Shell :: path/to/sdkmanager --install "cmdline-tools;latest" 
Shell :: delete command from history 
Shell :: apache install 
Shell :: open current folder in terminal linux 
Shell :: CocoaPods could not find compatible versions for pod "razorpay_flutter" when running pod install 
Shell :: How to Install & Run CodeIgniter Framework 
Shell :: start mongodb ubuntu 
Shell :: linux c programm time 
Shell :: The following directories are not writable by your user: mac 
Shell :: install old firefox version ubuntu 
Shell :: install couchdb ubuntu 18.04 
Shell :: shell script to find sum of n numbers using for loop 
Shell :: debian install docker 
Shell :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. 
Shell :: bash get unique lines 
Shell :: linux repeat command every 5 minutes 
Shell :: list files in cmd 
Shell :: commit and push 
Shell :: curl find latency 
Shell :: git ignore files 
Shell :: Check /app/package.json: command not found. Is a start script missing? https://help.glitch.com/kb/article/31 
Shell :: vscode connect gitlens to gitlab 
Shell :: jekyll new site 
Shell :: install lua on ubuntu 
Shell :: nvme cli 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =