{"id":410,"date":"2010-12-11T10:16:41","date_gmt":"2010-12-11T18:16:41","guid":{"rendered":"http:\/\/www.adrianandgenese.com\/blogger\/?p=410"},"modified":"2011-01-02T08:29:27","modified_gmt":"2011-01-02T16:29:27","slug":"how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup","status":"publish","type":"post","link":"https:\/\/www.adrianandgenese.com\/blogger\/2010\/12\/11\/how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup\/","title":{"rendered":"How to recover ssh access to your pogoplug when hbmgr.sh has been removed from startup"},"content":{"rendered":"<p>Recently, I was tinkering with my pogoplug running openpogo and decided to comment out the hbmgr.sh line in my rcS startup file. I soon learned that \u00c2\u00a0hbmgr.sh is responsible for starting dropbear and connecting your pogoplug to the my.pogoplug.com service. Because telnet was disabled and dropbear was not starting, I realized I no longer had SSH access to my pogoplug, although I could see my programs like transmission and asterisk were starting up ok.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.adrianandgenese.com\/blogger\/wp-content\/uploads\/2010\/12\/ex-qn-mark.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-439\" title=\"what the...\" src=\"https:\/\/i0.wp.com\/www.adrianandgenese.com\/blogger\/wp-content\/uploads\/2010\/12\/ex-qn-mark.jpg?resize=100%2C86&#038;ssl=1\" alt=\"\" width=\"100\" height=\"86\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>I freaked out for a moment as I believed there was no way to recover ssh access&#8230;until I thought about it some more. Below are the steps to recover SSH access to your pogoplug running openpogo if you somehow disabled hbmgr.sh on startup:<\/p>\n<p>This procedure will work with pogoplugs running openpogo, not sure if it will work for units NOT running openpogo since openpogo searches the opt\/etc\/init.d directory on startup to start any other scripts on boot.<\/p>\n<p>PREP:<br \/>\n-power off the pogoplug<br \/>\n-download a linux live distro. Any modern live distro will do, knoppix, slitaz, ubuntu, etc.<br \/>\n-burn distro to cd<br \/>\n-boot off linux live cd<br \/>\n-plug in HD from pogoplug into the computer now running linux<\/p>\n<p>ACCESS the HD:<\/p>\n<p>-mount hard drive (you might have to open up gparted to see what device your HD is coming up as)<br \/>\n-start terminal<br \/>\n-access your hd mount<br \/>\n-do an ls -a (this command shows hidden files on the directory you are in. If you do not use the -a command, you will only see the directories you shared out through pogoplug).<br \/>\n-go into the \/.opt\/etc\/init.d directory<br \/>\n-nano or vi a new file called S70ssh with ROOT permissions (otherwise you will not be able to write the file)<\/p>\n<p>Enter in this line in the new file:<\/p>\n<p>\/etc\/init.d\/hbmgr.sh start<\/p>\n<p>-save and exit<br \/>\n-chmod 777 the S70ssh file for good measure<\/p>\n<p>FINISHING:<br \/>\n-Power down the linux system<br \/>\n-Plug the HD back into the Pogoplug and power cycle the unit.<\/p>\n<p>After the unit restarts, the script should have run and started hbmgr.sh. Remember to delete the script S70ssh and make sure the \/etc\/init.d\/hbmgr.sh start line is enabled or entered back into the rcS startup file.<\/p>\n<div id=\"wp_fb_like_button\" style=\"margin:5px 0;float:none;height:100px;\"><script src=\"https:\/\/connect.facebook.net\/en_US\/all.js#xfbml=1\"><\/script><fb:like href=\"https:\/\/www.adrianandgenese.com\/blogger\/2010\/12\/11\/how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup\/\" send=\"true\" layout=\"standard\" width=\"450\" show_faces=\"true\" font=\"arial\" action=\"like\" colorscheme=\"light\"><\/fb:like><\/div>","protected":false},"excerpt":{"rendered":"<p>How to re-enable ssh after hbmgr.sh is removed from the rcS startup file on a pogoplug running openpogo.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[25,20],"tags":[92,93,68,67,91,71,90],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-computers","category-hack","tag-dropbear","tag-hbmgr-sh","tag-openpogo","tag-pogoplug","tag-rcs","tag-seagate-dockstar","tag-ssh"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/preRH-6C","_links":{"self":[{"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":5,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":412,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/posts\/410\/revisions\/412"}],"wp:attachment":[{"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adrianandgenese.com\/blogger\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}