DEV Community

Linux_guy
Linux_guy

Posted on

SSH Tutorial

Create ssh keys

to create new ssh key we use this command

ssh-keygen -t rsa -b 4096 -C "comment" -f "key-name"
Enter fullscreen mode Exit fullscreen mode

after running this command two files will be generated. copy the contents of file with .pub extension and paste it on to remote hosts .ssh/authorized_keys file

Top comments (0)