{"id":376,"date":"2024-10-09T08:58:46","date_gmt":"2024-10-09T08:58:46","guid":{"rendered":"http:\/\/linuxresellerwebhosting.in\/blog\/?p=376"},"modified":"2018-04-27T08:58:46","modified_gmt":"2018-04-27T08:58:46","slug":"how-to-access-ssh-without-password-in-easy-steps","status":"publish","type":"post","link":"https:\/\/linuxresellerwebhosting.in\/blog\/how-to-access-ssh-without-password-in-easy-steps\/","title":{"rendered":"How to Access SSH Without Password in Easy Steps"},"content":{"rendered":"<p>Hi folks,<\/p>\n<p>Today we are going to see about how to access SSH without password using SSHKEYGEN.<\/p>\n<p><strong>What is SSH ?<\/strong><\/p>\n<p>SSH, also known as Secure Socket Shell. It is a network protocol that provides administrators with a secure way to access a remote computer. Secure Shell provides strong\u00a0authentication and secure\u00a0encrypted\u00a0data communications between two computers connecting over an insecure network such as the Internet. SSH is widely used by network administrators for managing systems and applications remotely, allowing them to log in to another computer over a network, execute commands and move files from one computer to another.<\/p>\n<p><strong>SSH Vs TELNET :<\/strong><\/p>\n<p><b>SSH<\/b>\u00a0is a network protocol used to remotely access and manage a device. The key difference between\u00a0<b>Telnet<\/b>\u00a0and\u00a0<b>SSH<\/b>\u00a0is that\u00a0<b>SSH<\/b>\u00a0uses encryption, which means that all data transmitted over a network is secure from eavesdropping. Like\u00a0<b>Telnet<\/b>, a user accessing a remote device must have an\u00a0<b>SSH<\/b>\u00a0client installed.<\/p>\n<p><strong>STEPS TO ACCESS SSH WITHOUT PASSWORD :<\/strong><\/p>\n<p>Through <strong>ssh keys<\/strong> we can connect to remote\u00a0<strong>Linux<\/strong>\u00a0servers without entering password.<\/p>\n<p>Step 1 ) Login to the local machine and generate generate a pair of public keys using following command.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">[root@vps ~]# ssh-keygen -t rsa<\/pre>\n<p>Once you entered this command, sequentially press &#8220;Enter&#8221; 3 times.<\/p>\n<p>By default Your public key has been saved in \/root\/.ssh\/id_rsa.pub.<\/p>\n<p>Step 2 ) Now you have copy the public key to remote machine to which you connect without password.<\/p>\n<p>You can copy this file to remote machine through several methods. Now I&#8217;m going to copy this file to remote host through ssh-copy-id utility .<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">[root@vps ~]# ssh-copy-id -i \/root\/.ssh\/id_rsa.pub root@remote_server<\/pre>\n<p>Step 3 ) Once copied you can able to access remote server, You can directly login to remote server SSH without password.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">[root@vps ~]# ssh root@remote_server<\/pre>\n<p>&nbsp;<\/p>\n<p>THANKS FOR READING \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi folks, Today we are going to see about how to access SSH without password using SSHKEYGEN. What is SSH<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[33,2,1],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-linux","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":6,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":966,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/376\/revisions\/966"}],"wp:attachment":[{"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxresellerwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}