The algorithm is selected using the -t
option and key size using the -b
option.
ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa
ssh-keygen -t ecdsa -b 521
ssh-keygen -t ed25519
In .ssh/config
:
Host hfcs
Hostname hfcs.csclub.uwaterloo.ca
Port 22
User athayyil
IdentityFile ~/.ssh/csc24
In /etc/sudoers
:
user ALL=(root) NOPASSWD: /path/to/binary
$ docker restart $(docker ps -a -q)