-
Notifications
You must be signed in to change notification settings - Fork 2
SSH
Pol Casacuberta edited this page Sep 13, 2021
·
6 revisions
Connect to a computer using ssh:
systemctl start/enable sshd "ssh daemon" Use arp -a to look for possible pc's to connect to.
ssh user@ip_or_alias
Create the key
ssh-keygen -t rsa -b 2048 -C "some name"Open the program that holds private keys and then add the key
Tip: Do not add the .pub (public key)
eval `ssh-agent -s`
ssh-add KEYFILEList remotes to see their protocol
git remote -vChange from Https to SSH
git remote set-url origin git@github.com:cuberhaus/dotfiles.gitChange from SSH to Https
git remote set-url origin https://github.com/cuberhaus/dotfiles.gitHere you'll find all things i've learnt from linux thus far, enjoy!
SSH