Welcome! Log In Create A New Profile

Advanced

cannot change SSH password

Posted by zwalex 
cannot change SSH password
May 30, 2015 03:40PM
I am having a similar issue like mentioned here, although mine is that I cannot _change_ my SSH password ...
I have a PogoplugPro, that I got used a couple of years ago. I was playing around with it then and I seem to remember that I activated SSH access and set an SSH password - no idea what it was anymore though. Then the device went into a drawer for a long time. I just recently bumped into your site here and thought that I want to install Debian and then maybe owncloud on it.
So now the first issue I am having, is that I can connect to the device via SSH, but I cannot remember the password that I set anymore (and it's not ceadmin or stxadmin ...). When I go to the Pogoplug web site, I see my device as being 'offline'. I know that deactivating/activating the 'enable SSH...' setting would allow me to change the SSH password, but I do not see this setting under 'Setting/Security' (probably as the device is offline ...(?)). I also tried unregistering the device and opening a new account with Pogoplug and registering the device with the new account - it seems to 'find' the device, as it shows it as PogoplugPro, but it doesn't seem to be able to access it, as it shows it offline.
I really don't need to get the access working via the Pogoplug website, as I am not going to use the Pogoplug services anyways, I am just looking for a way to change my SSH password on the device.
Thanks in advance!
Re: cannot change SSH password
May 30, 2015 04:29PM
OK, this is interesting ... I was looking at the 'backdoor' SSH activation method, by going via the https://my_pogoplug_ip/sqdiag page to start dropbear (which in my case it already is, as I can access via SSH ...).
And then just gave it a try to enter the URL in a browser.
I am prompetd for a userID/password and am entering root/ceadmin and get the sqdiag web page. I can see that dropbear ist started and that a password is set. I can even see the contect of the USB stick in the devive under VFSFS-mnt_sda1.
So if I can access the SSL website with root/ceadmin, why am I getting
Permission denied, please try again.
when I SSH it with the same credentials?
How can I reset/change the SSH password for root?
Thanks!
Re: cannot change SSH password
May 30, 2015 05:20PM
OK, with
https://my_pogoplug_id/sqdiag/HBPlug?action=command
I obviosly cannot run an editor or fdisk via this web interface, but I can issue commands like mount, ls, ..., etc., but now what?
I really don't understand why I can logon as root the backdoor way, but not via SSH.
Re: cannot change SSH password
May 30, 2015 05:40PM
zwalex Wrote:
-------------------------------------------------------
> OK, with
> https://my_pogoplug_id/sqdiag/HBPlug?action=comman
> d
> I obviosly cannot run an editor or fdisk via this
> web interface, but I can issue commands like
> mount, ls, ..., etc., but now what?
> I really don't understand why I can logon as root
> the backdoor way, but not via SSH.

If you can register the Pogo at their website, then you shoul be able to activate SSH using that page. Did you look for that option at the website?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: cannot change SSH password
May 30, 2015 06:05PM
bodhi Wrote:
> If you can register the Pogo at their website,
> then you shoul be able to activate SSH using that
> page. Did you look for that option at the website?

Thanks. As I mention in my OP, I acn register the Pogoplug at their web site, but I do not see the 'activate SSH' option under Settings/Security.
I actually can access the device via SSH, but I am getting

Permission denied, please try again

errors, and I do not know why. The root password obviously is ceadmin, as I can login with it via the https site.
Re: cannot change SSH password
May 30, 2015 06:15PM
That's what I see on my settings/security page on pogoplug.com (see attached).
I should change the title of this thread, saying "why can't I log in via SSH?".
The root password obviously is ceadmin, SSH/dropbear is running
Attachments:
open | download - Screen Shot 2015-05-30 at 4.09.03 PM.png (47.4 KB)
Re: cannot change SSH password
May 30, 2015 06:55PM
Hooray! I managed to hack the stupid password thing!
Through the https:// ... /HBPlug?action=command interface, I could see that there were two shadow password files:
/etc/shadow and
/etc/shadow-
I made a save copy of these files and then deleted /etc/shadow and copied /etc/shadow- as /etc/shadow
Voila! Now I can login via SSH with root/ceadmin
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: