{"id":232,"date":"2015-07-06T11:11:35","date_gmt":"2015-07-06T11:11:35","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=232"},"modified":"2015-07-06T14:04:10","modified_gmt":"2015-07-06T14:04:10","slug":"linux-ssh-secure-shell","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=232","title":{"rendered":"Linux SSH (Secure Shell)"},"content":{"rendered":"<p>SSH is a network protocol. It allows data to be exchanged using a secure channel between two networked devices.<br \/>\nSame protocol is used for:<\/p>\n<p>ssh<br \/>\nsftp<br \/>\nscp<\/p>\n<p>RPM packages required to rum ssh includes:<\/p>\n<p>Openssh.rpm<br \/>\nOpenssh-client.rpm<br \/>\nOpenssh-server.rpm<\/p>\n<p>The configuration files of ssh are:<\/p>\n<p>\/etc\/ssh\/ssh_config : for configuring client<br \/>\n\/etc\/ssh\/sshd_config : for configuring server<\/p>\n<p>When ssh is executed for the first time a file \/root\/.ssh\/known_hosts is created.<\/p>\n<p>This file contains public keys and IP addresses of remote hosts.<br \/>\n# ssh user1@remotehost.com Password-less communication<\/p>\n<p>By the following setup a client should be able to access a server via ssh without typing a password every time.<\/p>\n<p>Login to the clients box<br \/>\n# cd \/root\/.ssh (or which ever user)<br \/>\n# ssh-keygen -t rsa : Without entering anything keep pressing enter<br \/>\nThe above will create two files id_rsa &amp; id_rsa.pub<br \/>\nCopy the contents of id_rsa.pub to the server. Copy it into the home directory of the user as whom you will be login in. Copy it into \/home\/username\/.ssh\/ authorized_keys<\/p>\n<p>Adding security to ssh<\/p>\n<p>Users can be allowed or denied access to ssh by adding the following entries in \/etc\/ssh\/sshd_config<br \/>\nallowusers abc : To allow abc<br \/>\ndenyusers abc : To deny abc<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>SSH is a network protocol. It allows data to be exchanged using a secure channel between two networked devices. Same protocol is used for: ssh <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=232\" title=\"Linux SSH (Secure Shell)\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":266,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssh"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":1,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":233,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions\/233"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/266"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}