Enable SSH, SFTP Servers

3,111 views
Skip to first unread message

cha...@gmail.com

unread,
Sep 7, 2013, 3:49:10 PM9/7/13
to minno...@googlegroups.com
Hi.

After googling all the morning, I can't find the way to start the SSH and SFTP on my MinnowBoard.

First, It seems that the SSH/SFTP Packages are installed:

root@minnow:~# opkg list-installed | grep -i ssh
openssh-misc - 6.0p1-r6.9
openssh-sftp - 6.0p1-r6.9
openssh-sftp-server - 6.0p1-r6.9
openssh-ssh - 6.0p1-r6.9

If I check the running processes:

root@minnow:~# ps aux | grep ssh
root       467  0.0  0.0   3820   408 ?        Ss   15:54   0:00 /usr/bin/ssh-agent -- gnome-session
root      1235  0.0  0.0   2096   496 ttyPCH0  S+   19:16   0:00 grep ssh

If I try to start OpenSSH as is suggested for other distros I get:

root@minnow:~# /etc/init.d/ssh start
sh: /etc/init.d/ssh: No such file or directory

"root@minnow:~# /etc/init.d/sshd" displays the same message.

However in /etc/init.d/ there is a "dropbear" file. If I try to start it:

root@minnow:~# /etc/init.d/dropbear start
Starting Dropbear SSH server

But then, there is not daemon running:

root@minnow:~# ps aux | grep dropbear
root      1282  0.0  0.0   2092   496 ttyPCH0  S+   19:34   0:00 grep dropbear

If I try to restart dropbear, the output is:

root@minnow:~# /etc/init.d/dropbear restart
Restarting Dropbear SSH server: no /usr/sbin/dropbear found; none killed

I hope that some one can help me to do. I know, this is a trivial thing, but I am not expert in Linux, nor Armstrong. I think I will come back here by the next weeks, several times.

Thanks for reading and helping.

Koen Kooi

unread,
Sep 8, 2013, 4:42:07 AM9/8/13
to minno...@googlegroups.com
Op 7 sep. 2013, om 21:49 heeft cha...@gmail.com het volgende geschreven:

> Hi.
>
> After googling all the morning, I can't find the way to start the SSH and SFTP on my MinnowBoard.

It's running by default and it's using socket activation, so it will only get started when you try to ssh in.

regards,

Koen

cha...@gmail.com

unread,
Sep 9, 2013, 9:55:19 PM9/9/13
to minno...@googlegroups.com
Hi Koen:

Unfortunately i get "server unexpectedly closed network connection" when trying to connect from WinSCP (SFTP) and Putty (SSH) over network:



If I do "ssh localhost" from the Minnowboard command shell, i got "ssh_exchange_identification: Connection closed by remote host".

Koen Kooi

unread,
Sep 10, 2013, 6:21:03 AM9/10/13
to minno...@googlegroups.com

Op 10 sep. 2013, om 03:55 heeft cha...@gmail.com het volgende geschreven:

> Hi Koen:
>
> Unfortunately i get "server unexpectedly closed network connection" when trying to connect from WinSCP (SFTP) and Putty (SSH) over network:
>
>
>
> If I do "ssh localhost" from the Minnowboard command shell, i got "ssh_exchange_identification: Connection closed by remote host".
>
>
> On Sunday, September 8, 2013 3:42:07 AM UTC-5, Koen Kooi wrote:
> Op 7 sep. 2013, om 21:49 heeft cha...@gmail.com het volgende geschreven:
>
>> Hi.
>>
>> After googling all the morning, I can't find the way to start the SSH and SFTP on my MinnowBoard.
>
> It's running by default and it's using socket activation, so it will only get started when you try to ssh in.

I've reproduced this locally and it looks like a race condition when starting dropbear the first time when it need to generate a host key. Can you try:

rm /etc/dropbear/dropbear_rsa_host_key

And see if that improves it?

regards,

Koen

Darren Hart

unread,
Sep 10, 2013, 1:28:33 PM9/10/13
to minno...@googlegroups.com
Hrm.... this sounds awfully familiar.... not finding anything in BZ
about it. Asking around, will report back if I find anything.


--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


cha...@gmail.com

unread,
Sep 11, 2013, 8:22:43 PM9/11/13
to minno...@googlegroups.com
Hi Koen:

Indeed, there was a change:

root@minnow:~# ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 65:17:2d:14:ac:ef:1c:30:e0:8f:68:e5:52:5d:41:7e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
root@minnow:~#


Unfortunately I could not test from a remote machine, since my MinnowB networking stoped working. :(
Reply all
Reply to author
Forward
0 new messages