Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ssh connection: connection refused?
@ 2014-05-26 11:34 cem akpolat
  2014-05-26 11:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: cem akpolat @ 2014-05-26 11:34 UTC (permalink / raw)
  To: buildroot

Dear all,

I set the root passwod of the file system in the menuconfig and establish a
ssh connection to my file system. Some ssh keys are generated as below, but
then I couldn't connect second time to the file system. it results in
"connection refused". What could be the principal reason underlying this
issue?


-rw-r--r--  1 root    root      1574 May 26 11:10 ssh_config
-rw-------  1 root    root       668 May 26 19:15 ssh_host_dsa_key
-rw-r--r--  1 root    root       590 May 26 19:15 ssh_host_dsa_key.pub
-rw-------  1 root    root       227 May 26 19:15 ssh_host_ecdsa_key
-rw-r--r--  1 root    root       162 May 26 19:15 ssh_host_ecdsa_key.pub
-rw-------  1 root    root       411 May 26 19:24 ssh_host_ed25519_key
-rw-------  1 root    root        96 May 26 19:24 ssh_host_ed25519_key.pub
-rw-------  1 root    root       965 May 26 19:15 ssh_host_key
-rw-r--r--  1 root    root       630 May 26 19:15 ssh_host_key.pub
-rw-------  1 root    root      1679 May 26 19:15 ssh_host_rsa_key
-rw-r--r--  1 root    root       382 May 26 19:15 ssh_host_rsa_key.pub
-rw-r--r--  1 root    root      3622 May 26 11:10 sshd_config

thanks for your recommendation,

Cem Akpolat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140526/00c4a2d8/attachment-0001.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] ssh connection: connection refused?
  2014-05-26 11:34 [Buildroot] ssh connection: connection refused? cem akpolat
@ 2014-05-26 11:51 ` Thomas Petazzoni
  2014-05-26 12:04   ` cem akpolat
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-05-26 11:51 UTC (permalink / raw)
  To: buildroot

Dear cem akpolat,

On Mon, 26 May 2014 13:34:02 +0200, cem akpolat wrote:

> I set the root passwod of the file system in the menuconfig and
> establish a ssh connection to my file system. Some ssh keys are
> generated as below, but then I couldn't connect second time to the
> file system. it results in "connection refused". What could be the
> principal reason underlying this issue?

The SSH server is not running.

Which SSH server are you using? Buildroot has support for Dropbear and
OpenSSH, and both packages have init scripts to start the server at
boot time.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] ssh connection: connection refused?
  2014-05-26 11:51 ` Thomas Petazzoni
@ 2014-05-26 12:04   ` cem akpolat
  2014-05-26 12:10     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: cem akpolat @ 2014-05-26 12:04 UTC (permalink / raw)
  To: buildroot

Dear Thomas,

I am using both, dropbear and openssh. If using together leads to the
conflict, I should disable one of them. By the way, I can boot first time
the file system, I can login via ssh, but the second time I cannot and
receive "connection refused". I have right now two init scripts under
init.d. One for dropbear S50dropbear and the other for probably openssh
S50sshd.

Thanks,
Cem

Cem Akpolat


On Mon, May 26, 2014 at 1:51 PM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Dear cem akpolat,
>
> On Mon, 26 May 2014 13:34:02 +0200, cem akpolat wrote:
>
> > I set the root passwod of the file system in the menuconfig and
> > establish a ssh connection to my file system. Some ssh keys are
> > generated as below, but then I couldn't connect second time to the
> > file system. it results in "connection refused". What could be the
> > principal reason underlying this issue?
>
> The SSH server is not running.
>
> Which SSH server are you using? Buildroot has support for Dropbear and
> OpenSSH, and both packages have init scripts to start the server at
> boot time.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140526/44954684/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] ssh connection: connection refused?
  2014-05-26 12:04   ` cem akpolat
@ 2014-05-26 12:10     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-05-26 12:10 UTC (permalink / raw)
  To: buildroot

Dear cem akpolat,

On Mon, 26 May 2014 14:04:33 +0200, cem akpolat wrote:

> I am using both, dropbear and openssh. If using together leads to the
> conflict, I should disable one of them.

Of course it leads to a conflict (though I believe one of them should
start successfully, and the other fail).

> By the way, I can boot first
> time the file system, I can login via ssh, but the second time I
> cannot and receive "connection refused". I have right now two init
> scripts under init.d. One for dropbear S50dropbear and the other for
> probably openssh S50sshd.

Please chose one or the other. Having two SSH servers listening on the
same TCP port doesn't make any sense.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-26 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 11:34 [Buildroot] ssh connection: connection refused? cem akpolat
2014-05-26 11:51 ` Thomas Petazzoni
2014-05-26 12:04   ` cem akpolat
2014-05-26 12:10     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox