Hi, I’m back to blogging after several weeks of spending my time in preparation and starting with my new job. It has been too busy here but then again, I have something new to log on my log book. I’m lazy typing my SSH password every time I need to login to our remote server, so I search for SSH key authentication and here it is.
More than just hassle free login
SSH key authentication is not just for ease of use. It adds security where you don’t have to worry that somebody steals your password and be able to login to your SSH account.
This is how we do it
First, you need a client that already have SSH key. You can copy your key or generate one, it’s up to you. Next, you will copy your key to the server you are connecting to. Linux usually have the utility ssh-copy-id
where it can copy your key to the server you need to connect. Example:
lysender@darkstar:~$ ssh-copy-id -i .ssh/id_rsa.pub remote@machine.com remote@machine.com's password: Now try logging into the machine, with "ssh 'remote@machine.com'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. lysender@darkstar:~$
The next time you access your remote machine via SSH, it won’t bother your with passwords anymore.
must try this..
Ayos ken!