{"id":690,"date":"2010-04-01T10:48:23","date_gmt":"2010-04-01T03:48:23","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=690"},"modified":"2010-04-01T11:27:34","modified_gmt":"2010-04-01T04:27:34","slug":"how-to-enable-ssh-and-ftp-on-vmware-esxi-4","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=690","title":{"rendered":"How to enable ssh and ftp on vmware ESXi 4"},"content":{"rendered":"<p>I assume you have install Vmware ESXi 4 on your baremetal server, if not youc an folow the installation step on this link<\/p>\n<p><a href=\"http:\/\/builddocs.com\/server_os_builds\/installing-vmware-esxi-version-4\/\">http:\/\/builddocs.com\/server_os_builds\/installing-vmware-esxi-version-4\/<\/a><\/p>\n<p>after you install the Vmware ESXi 4,\u00a0 now i want to enable ssh and ftp so i can conenct to to consule and upload file into it.<\/p>\n<p>By default adding ssh isn\u2019t possible. But there\u2019s a way to get this  working, just do the following:<\/p>\n<ol>\n<li> Go to the ESXi console and press alt+F1<\/li>\n<li> Type: unsupported<\/li>\n<li> Enter the root password(No prompt, typing is blindly)<\/li>\n<li> At the prompt type \u201cvi \/etc\/inetd.conf\u201d<\/li>\n<li> Look for the line that starts with \u201c#ssh\u201d (you can search with  pressing \u201c\/\u201d)<\/li>\n<li> Remove the \u201c#\u201d (press the \u201cx\u201d if the cursor is on the character)<\/li>\n<li> Save \u201c\/etc\/inetd.conf\u201d by typing \u201c:wq!\u201d<\/li>\n<li> Restart the management service \u201c\/sbin\/services.sh restart\u201d<\/li>\n<\/ol>\n<p>Now , how to enable ftp to the Vmware server, here is the step:<\/p>\n<p>1) Download and extract this zip <a href=\"http:\/\/www.vm-help.com\/esx\/esx3i\/ftp\/proftpd.zip\">file<\/a>.<\/p>\n<p>&#8211; since vmware esx didn&#8217;t have unzip program i just unzip the files on another server and save it on the www directory let say we save it on http:\/\/localhost\/proftpd\/<br \/>\n2) Copy proftpd to \/sbin or \/usr\/sbin\/<\/p>\n<p>&#8211; #cd \/sbin<\/p>\n<p># wget http:\/\/localhost\/proftpd\/proftpd<br \/>\n3) Copy tcpd to \/sbin or \/usr\/sbin\/<\/p>\n<p>-#cd \/sbin<\/p>\n<p># wget http:\/\/localhost\/proftpd\/tcpd<br \/>\n4) Copy proftpd.conf to \/etc. You may wish to edit the file to suit your  environment.<\/p>\n<p>-#cd \/etc<\/p>\n<p>#wget http:\/\/localhost\/proftpd\/proftpd.conf<br \/>\n5) Add the below lines to \/etc\/inetd.conf.<\/p>\n<p># vi \/etc\/inet.d.conf<\/p>\n<p># activate proftp daemon<\/p>\n<p>ftp     stream  tcp     nowait  root    \/usr\/sbin\/<strong>proftpd<\/strong> proftpd<\/p>\n<p>5) Determine the process id for inetd with the command  <strong>ps | grep inetd<\/strong><\/p>\n<p># ps | grep inetd<br \/>\n4895 4895 busybox\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inetd<br \/>\n6) Restart inetd with this command <strong>kill -HUP  &lt;process id&gt;<\/strong><\/p>\n<p><strong># kill -HUP 4895<br \/>\n<\/strong><\/p>\n<p>Note that this change will not survive a reboot with  ESXi.  To have this available after a reboot you&#8217;ll need to add these  changes to \/etc\/rc.local<\/p>\n<p>#vi \/etc\/rc.local<\/p>\n<p>add this<\/p>\n<p>#! \/bin\/ash<br \/>\ncd \/usr\/sbin\/ &amp;&amp; wget http:\/\/localhost\/proftpd\/proftpd<br \/>\ncd \/usr\/sbin\/ &amp;&amp; wget http:\/\/localhost\/proftpd\/tcpd<br \/>\nchmod 755 \/usr\/sbin\/proftpd<br \/>\nchmod 755 \/usr\/sbin\/tcpd<br \/>\ncd \/etc\/ &amp;&amp; wget http:\/\/localhost\/proftpd\/proftpd.conf<\/p>\n<p>now you can reboot it and test the ftp<\/p>\n<p>#reboot<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2010\/04\/vmware1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-696\" title=\"vmware\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2010\/04\/vmware1.png\" alt=\"vmware\" width=\"677\" height=\"431\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I assume you have install Vmware ESXi 4 on your baremetal server, if not youc an folow the installation step on this link http:\/\/builddocs.com\/server_os_builds\/installing-vmware-esxi-version-4\/ after you install the Vmware ESXi 4,\u00a0 now i want to enable ssh and ftp so i can conenct to to consule and upload file into it. By default adding ssh [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[872],"tags":[6081],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-vmware","tag-how-to-enable-ssh-and-ftp-on-vmware-esxi-4"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=690"}],"version-history":[{"count":7,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/690\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}