You have access to many different Linux / Unix servers during the day, you are in the IT department, remembering passwords, both challenging and brings security concerns. Inevitably, people start using the same or similar passwords after a while. Then using SSH Key to access server comes into picture. It’s fast, efficient and secure!
ssh burak@main_server_host
cd ~/.ssh
Buraks-MacBook-Air:.ssh burakalakus$ ls -al -rw------- 1 burakalakus staff 1679 May 23 2015 id_rsa -rw-r--r-- 1 burakalakus staff 418 May 23 2015 id_rsa.pub
ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/burak/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/burak/.ssh/id_rsa. Your public key has been saved in /home/burak/.ssh/id_rsa.pub. The key fingerprint is: 4a:dd:0a:c6:35:4e:3f:ed:27:38:8c:74:44:4d:93:67 burak@ana_sunucu The key's randomart image is: +--[ RSA 2048]----+ | .oo. | | . o.E | | + . o | | . = = . | | = S = . | | o + = + | | . o + o . | | . o | | | +-----------------+
ssh-copy-id burak@main_server The authenticity of host 'main_server (12.34.56.78)' can't be established. RSA key fingerprint is b1:2d:33:67:ce:35:4d:5f:f3:a8:cd:c0:c4:48:86:12. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'main_server' (RSA) to the list of known hosts. burak@main_server's password: Now try logging into the machine, with "ssh 'burak@main_server'", and check in: ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
Above, you see the output of a successful process. After this stage, all you will do is;
ssh burak@main_server
You will see it does not ask for password.
Done!
Avaya SAL Gateway (Secure Access Link) is a remote connectivity solution used by Avaya to provide remote support for its… Read More
You can change Linux Timezone via bash command line easily. All Timezone information are stored in /usr/share/zoneinfo/./etc/localtime is symlink to… Read More
DALI is a communication protocol that is used for the automation of lighting, which is not new at all. It… Read More
Communication requires being in sync just like an orchestra. What happens when the bass guitar in band is not sync… Read More
CAR PC in car is now old school and I decided to mount an iPad mini into the dashboard. (more…) Read More
I've been waiting to write about my project "Carputer", for a long time. I tried to share all details step… Read More