{"id":1093,"date":"2012-08-23T11:06:12","date_gmt":"2012-08-23T03:06:12","guid":{"rendered":"http:\/\/rmohan.com\/?p=1093"},"modified":"2012-08-23T11:06:12","modified_gmt":"2012-08-23T03:06:12","slug":"centos-minimal","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1093","title":{"rendered":"Centos Minimal"},"content":{"rendered":"<h3>scp : samll tips ( error : bash: scp: command not found )<\/h3>\n<div>\u00a0<\/div>\n<div id=\"post-body-4417458050044259238\"><\/p>\n<div dir=\"ltr\"><strong id=\"internal-source-marker_0.5040134701412171\"><strong id=\"internal-source-marker_0.5040134701412171\">When I try to copy a file over scp command , I\u2019ve faced the following error.<\/strong><\/strong><\/div>\n<p><strong><strong><br \/><\/strong><\/strong><\/p>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>CentOS6-1# \/usr\/bin\/scp aa.tgz hattori@192.168.0.100:<br \/>hattori@192.168.0.100&#8217;s password:<br \/>bash: scp: command not found<br \/>lost connection<br \/>#<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong><strong><br \/><\/strong><\/strong><\/p>\n<div dir=\"ltr\">The reason is openssh-clients have not been installed on the remote machine.<\/div>\n<div dir=\"ltr\">To copy files over scp , openssh-clients needs to be installed on both machines.<\/div>\n<div dir=\"ltr\">I didn\u2019t know that\u2026<\/div>\n<p><strong><strong><br \/><\/strong><\/strong><\/p>\n<div dir=\"ltr\">CentOS6-2 machine has not had openssh-clients for sure.<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\">CentOS6-1# rpm -qa | grep openssh-client<\/div>\n<div dir=\"ltr\">openssh-clients-5.3p1-81.el6.x86_64<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong><strong><br \/><\/strong><\/strong><\/p>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\">CentOS6-2#rpm -qa | grep openssh-clients<\/div>\n<div dir=\"ltr\">CentOS6-2#<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong><strong><br \/><\/strong><\/strong><\/p>\n<div dir=\"ltr\">To solve this , install openssh-clients on CentOS6-2 machine.<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\">CentOS6-2 # yum install -y openssh-clients<\/div>\n<div>\u00a0<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div><a title=\"Email This\" href=\"http:\/\/www.blogger.com\/share-post.g?blogID=4801765550390572047&amp;postID=4417458050044259238&amp;target=email\" target=\"_blank\">Email This<\/a><a title=\"BlogThis!\" href=\"http:\/\/www.blogger.com\/share-post.g?blogID=4801765550390572047&amp;postID=4417458050044259238&amp;target=blog\" target=\"_blank\">BlogThis!<\/a><a title=\"Share to Twitter\" href=\"http:\/\/www.blogger.com\/share-post.g?blogID=4801765550390572047&amp;postID=4417458050044259238&amp;target=twitter\" target=\"_blank\">Share to Twitter<\/a><a title=\"Share to Facebook\" href=\"http:\/\/www.blogger.com\/share-post.g?blogID=4801765550390572047&amp;postID=4417458050044259238&amp;target=facebook\" target=\"_blank\">Share to Facebook<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>scp : samll tips ( error : bash: scp: command not found ) <\/p>\n<p> When I try to copy a file over scp command , I\u2019ve faced the following error. <\/p>\n<p> CentOS6-1# \/usr\/bin\/scp aa.tgz hattori@192.168.0.100:hattori@192.168.0.100&#8217;s password:bash: scp: command not foundlost connection# <\/p>\n<p> The reason is openssh-clients have not been installed on the remote machine. To [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1093"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1093"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1093\/revisions"}],"predecessor-version":[{"id":1095,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1093\/revisions\/1095"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}