BalCCon2k17 - MacLemon and Hetti - SSH From Zero to Hero workshop

BalCCon2k17 - MacLemon and Hetti - SSH From Zero to Hero workshop

Watch on YouTube

vim ~/.ssh/config
Host workshop
	HostName ssh-host01.example.com
	Port 22
	User balccon0
	IdentityFile ~/.ssh/mykey

Host *
	AddKeysToAgent yes
	// AddKeysToAgent ask
	IdentitiesOnly yes
	ForwardAgent no
// current connection number
w | wc -l
// upload key
ssh-copy-id -i ~/.ssh/mykey.pub workshop
// If you have setup a passphase when creating a key pair
ssh-agent
ssh-add ~/.ssh/mykey

// Delet all keys from ssh-agent
ssh-add -D
ssh-add -l
Show Comments