Unable to ssh to TonidoPlug with latest ArchLinuxARM

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby martinscharnke » Sat Jan 26, 2013 1:57 am

The pacman log that is part of the latest image includes these lines:

==> Warning: setcap failed, falling back to setuid root on /usr/bin/systemd-detect-virt
[2013-01-13 16:59] ==> The legacy configuration options are no longer supported in rc.conf,
[2013-01-13 16:59] convert your rc.conf to the new configuration formats.
[2013-01-13 16:59] upgraded systemd (195-2 -> 196-2)
[2013-01-13 16:59] ==> The "block" hook has replaced several hooks:
[2013-01-13 16:59] fw, sata, pata, scsi, virtio, mmc, usb
[2013-01-13 16:59] Replace any and all of these in /etc/mkinitcpio.conf with a single
[2013-01-13 16:59] instance of the "block" hook
[2013-01-13 16:59] upgraded mkinitcpio (0.11.0-1 -> 0.12.0-2)
[2013-01-13 17:00]

It seems that the image will not produce a running system.
martinscharnke
 
Posts: 5
Joined: Fri Jan 27, 2012 11:54 pm

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby WarheadsSE » Sat Jan 26, 2013 1:44 pm

That rootfs should already be on systemd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby honnoric » Fri Feb 08, 2013 11:58 am

Noticed a new build of the "ArchLinuxARM-armv5te-latest.tar.gz" (Dated 05 Feb 2013) so tried installing with this on my Tonidoplug.

Sadly there is still the same problem - namely I can ping it successfully but cannot connect to SSH, so assume the SSH service is not being started automatically.

Any guidance on how I can move this on greatly appreciated.
honnoric
 
Posts: 3
Joined: Fri Jan 18, 2013 3:29 pm

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby pepedog » Fri Feb 08, 2013 3:02 pm

If their not in there, which I can't believe their not, mount new drive with rootfs on
$this->bbcode_second_pass_code('', 'cp -a /media/pathtomount/usr/lib/systemd/system/sshd.service /media/pathtomount/etc/systemd/system/multi-user.target.wants/sshd.service
cp -a /media/pathtomount/usr/lib/systemd/system/sshdgenkeys.service /media/pathtomount/etc/systemd/system/multi-user.target.wants/sshdgenkeys.service')
I know their not symlinks, delete them if you boot and eneable sshd
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby honnoric » Mon Feb 18, 2013 8:25 pm

pepedog,

They are there as symbolic links at the moment

$this->bbcode_second_pass_code('', 'root@TonidoPlug:/media/disk5part1/etc/systemd/system/multi-user.target.wants# ls -l
total 0
lrwxrwxrwx 1 root root 38 2013-02-08 09:44 cronie.service -> /usr/lib/systemd/system/cronie.service
lrwxrwxrwx 1 root root 38 2013-02-08 09:44 netcfg.service -> /usr/lib/systemd/system/netcfg.service
lrwxrwxrwx 1 root root 40 2013-02-08 09:44 openntpd.service -> /usr/lib/systemd/system/openntpd.service
lrwxrwxrwx 1 root root 40 2013-02-08 09:44 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 43 2013-02-08 09:44 sshdgenkeys.service -> /usr/lib/systemd/system/sshdgenkeys.service
lrwxrwxrwx 1 root root 36 2013-02-08 09:44 sshd.service -> /usr/lib/systemd/system/sshd.service
lrwxrwxrwx 1 root root 41 2013-02-08 09:44 syslog-ng.service -> /usr/lib/systemd/system/syslog-ng.service
root@TonidoPlug:/media/disk5part1/etc/systemd/system/multi-user.target.wants#
')

I am away at the moment but will try copying the files themselves (as per your suggestion) at the weekend.
honnoric
 
Posts: 3
Joined: Fri Jan 18, 2013 3:29 pm

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby pepedog » Mon Feb 18, 2013 9:43 pm

One last shot at this as I don't have a tp
Edit the Ethernet file in /etc/network.d (don't go into examples directory)
Put in this line at the bottom
$this->bbcode_second_pass_code('', 'PRE_UP="sleep 10"')
If it works I'll explain why
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby thoughtcriminal » Sat Feb 23, 2013 2:39 am

I also have this problem. Thanks for helping pepedog. Unfortunately, I added PRE_UP="sleep 10" to the bottom of the /etc/network.d/wired-eth0 file, and I still get the connection refused error.
thoughtcriminal
 
Posts: 4
Joined: Sat Feb 23, 2013 2:30 am

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby WarheadsSE » Sat Feb 23, 2013 5:23 am

Try adding this to the same file:
$this->bbcode_second_pass_code('', 'DHCP_OPTIONS="-A"')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby thoughtcriminal » Sun Feb 24, 2013 4:05 am

I still get "Connection refused" with the following at the end of my /etc/network.d/wired-eth0 file.
$this->bbcode_second_pass_code('', '
PRE_UP="sleep 10"
DHCP_OPTIONS="-A"
')

The rest of the file is stock, but just in case it's helpful, the full file looks like this:
$this->bbcode_second_pass_code('', '
CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'
## for DHCPv6
#IP6='dhcp'
## for IPv6 autoconfiguration
#IP6='stateless'

## Example of static eth0
#CONNECTION='ethernet'
#DESCRIPTION='A basic static ethernet connection using iproute'
#INTERFACE='eth0'
#IP='static'
#ADDR='192.168.1.23'
#ROUTES=('192.168.0.0/24 via 192.168.1.2')
#GATEWAY='192.168.1.1'
#DNS=('192.168.1.1')

## For IPv6 autoconfiguration
#IP6=stateless

## For IPv6 static address configuration
#IP6='static'
#ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#ROUTES6=('abcd::1234')
#GATEWAY6='1234:0:123::abcd'

PRE_UP="sleep 10"
DHCP_OPTIONS="-A"
')

Would it be worth trying a static config? I tried using the one from the examples dir and changing the specified IP to the same one my router has always been configured to assign the tonido plug, but then I get "no route to host." I probably just did it wrong, but I don't want to debug if it's not going to solve the problem.
thoughtcriminal
 
Posts: 4
Joined: Sat Feb 23, 2013 2:30 am

Re: Unable to ssh to TonidoPlug with latest ArchLinuxARM

Postby nicux » Sun Feb 24, 2013 12:52 pm

I have resolved this problem in my case using the ssh socket as can be seen in https://wiki.archlinux.org/index.php/Ssh#Daemon after enter in chroot environment (In short: you should type "systemctl enable sshd.socket"). Besides, I had to run the command "/usr/bin/ssh-keygen -A" by hand in the chroot environment and voilà, it works for me!!
nicux
 
Posts: 3
Joined: Sat Sep 11, 2010 4:00 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 13 guests