[RESOLVED] Cannot log in as root user (ssh)

This forum is for all other ARMv5 devices

[RESOLVED] Cannot log in as root user (ssh)

Postby yahma » Fri May 25, 2012 10:43 pm

I had Arch running on my Pogoplug v3, then did an update, and when the initscripts updated, I never was able to fix my PogoPlug. So today, I decided to start over, I downloaded the latest tar.gz and extracted it to a freshly formatted ext3 usb stick.

Plugged it in, booted, and it seemed to boot fine. I could ssh into the PogoPlug; however, when it asked for my username/password thats wherre trouble started.

I typed in root/root as the username/password, and as soon as i finished typing 'root' as the password, the connection to ssh was terminated. I thought, perhaps root logins were not being allowed, so I took the usb onto my other linux computer, and changed the /etc/ssh/sshd_config and uncommented the line:
PermitRootLogin yes

Then plugged the usb stick back into the pogoplug and rebooted. I could once again ssh into the pogoplug; however, the same thing happens. As soon as I finish logging in as root/root, the ssh session is terminated. Can anyone help??

Thanks!
Last edited by yahma on Sun Jun 03, 2012 7:04 pm, edited 1 time in total.
yahma
 
Posts: 6
Joined: Fri May 25, 2012 10:38 pm

Re: Cannot log in as root user (ssh)

Postby yahma » Sat Jun 02, 2012 2:53 am

So nobody has had any problems logging in as root via SSH on a new install??

I downloaded the latest install image and booted directly into that, and the root login is not possible... after logging in as root, the ssh session is immediately terminated. HELP!
yahma
 
Posts: 6
Joined: Fri May 25, 2012 10:38 pm

Re: Cannot log in as root user (ssh)

Postby WarheadsSE » Sat Jun 02, 2012 3:28 pm

I've seen your post, I just don't know what is happening, and have not been able to replicate it.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot log in as root user (ssh)

Postby timschuerewegen » Sat Jun 02, 2012 4:05 pm

Did you take a look at /var/log/auth.log? Maybe it helps you track down and eventually solve the problem.
timschuerewegen
 
Posts: 9
Joined: Fri May 27, 2011 1:24 pm

Re: Cannot log in as root user (ssh)

Postby yahma » Sun Jun 03, 2012 4:18 pm

$this->bbcode_second_pass_code('', 'Feb 16 19:48:58 alarm-oxnas login[985]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Feb 16 19:48:58 alarm-oxnas login[988]: ROOT LOGIN on '/dev/ttyS0'
Feb 16 19:51:36 alarm-oxnas sshd[1010]: Accepted password for root from 192.168.11.7 port 54469 ssh2
Feb 16 19:51:36 alarm-oxnas sshd[1010]: pam_unix_session(sshd:session): session opened for user root by (uid=0)
Feb 16 20:01:01 alarm-oxnas /usr/sbin/crond[1014]: pam_unix(crond:session): session opened for user root by (uid=0)
Feb 16 20:01:01 alarm-oxnas /USR/SBIN/CROND[1014]: pam_unix(crond:session): session closed for user root
Feb 16 20:04:37 alarm-oxnas sshd[973]: Received signal 15; terminating.
Feb 16 20:04:38 alarm-oxnas sshd[1010]: Exiting on signal 15
Feb 16 20:04:38 alarm-oxnas sshd[1010]: pam_unix_session(sshd:session): session closed for user root')

I don't see anything especially useful. Does anyone else notice anything out of the ordinary?
yahma
 
Posts: 6
Joined: Fri May 25, 2012 10:38 pm

Re: Cannot log in as root user (ssh)

Postby WarheadsSE » Sun Jun 03, 2012 5:05 pm

Sounds similar to the initscripts problems
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot log in as root user (ssh)

Postby yahma » Sun Jun 03, 2012 6:16 pm

If I download the latest image from: http://archlinuxarm.org/os/oxnas/oxnas-install.sh to my Desktop Linux box, then run:
$this->bbcode_second_pass_code('', 'mke2fs -j /dev/sdg1 (this is my usb flash drive)
mount /dev/sdg1
cd /mnt/usbdisk/
tar xzf /home/user/downloads/ArchLinuxARM-oxnas-latest.tar.gz
')

I should end up with a fresh arch installation, right? Thats how I'm booting into Arch, as I can no longer run the install script because of my prior installation which flashed the arch kernel to my PogoPlug, but still cannot login via SSH (root/root).
Last edited by yahma on Sun Jun 03, 2012 6:35 pm, edited 1 time in total.
yahma
 
Posts: 6
Joined: Fri May 25, 2012 10:38 pm

Re: Cannot log in as root user (ssh)

Postby WarheadsSE » Sun Jun 03, 2012 6:35 pm

That should be fresh, assuming you either deleted the tree, or formatted the partition.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot log in as root user (ssh)

Postby yahma » Sun Jun 03, 2012 7:03 pm

I just re-downloaded the latest image today, and redid everything. I'm able to now login via SSH.

No idea, why with the older system image, things did not work. Thanks for all your help!
yahma
 
Posts: 6
Joined: Fri May 25, 2012 10:38 pm


Return to Community Supported

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests