Skip to content
Pol Casacuberta edited this page Sep 13, 2021 · 6 revisions

SSH icon2 SSH

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 KEYFILE

List remotes to see their protocol

git remote -v

Change from Https to SSH

git remote set-url origin git@github.com:cuberhaus/dotfiles.git

Change from SSH to Https

git remote set-url origin https://github.com/cuberhaus/dotfiles.git

Here you'll find all things i've learnt from linux thus far, enjoy!

Clone this wiki locally