You are not logged in.

#1 2009-05-21 14:44:59

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

[SOLVED] OpenSSH and Arch Linux

Hello all,

I'm a completely new Arch Linux user, and installed it in a Ubuntu host vm.

First thing I wanted to install is a ssh server so I can play with the installation at work (during break, of course tongue).

I followed the wikis found http://wiki.archlinux.org/index.php/SSH and http://wiki.archlinux.org/index.php/Using_SSH_Keys.

But I ran across an issue I haven't found a solution anywhere else. When I try to:

$ssh localhost -p 16922 -v
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 16922.
debug1: Connection established.
debug1: identity file /home/milasch/.ssh/identity type -1
debug1: identity file /home/milasch/.ssh/id_rsa type -1
debug1: identity file /home/milasch/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host

I tried copying the generated public key to authorized_keys but nope, it refuses to work. But I can ssh my host ubuntu machine.

I need not to say I can't ssh from my host to my guest OS. (Yes, I can ping both ways).

Help?!

Last edited by milasch (2009-05-21 18:01:40)

Offline

#2 2009-05-21 14:56:40

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: [SOLVED] OpenSSH and Arch Linux

A more verbose output:

OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 16922.
debug1: Connection established.
debug1: identity file /home/milasch/.ssh/identity type -1
debug1: identity file /home/milasch/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /home/milasch/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/milasch/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host

Offline

#3 2009-05-21 15:02:40

jpe30
Member
Registered: 2009-01-02
Posts: 24

Re: [SOLVED] OpenSSH and Arch Linux

It looks like you may have copied your keys wrong.  Also, try copying the keys both ways, so from host to VM, and then VM to host.

Offline

#4 2009-05-21 15:04:47

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: [SOLVED] OpenSSH and Arch Linux

Well, in the examples above I'm doing it locally only (ssh localhost) for test purposes.

Offline

#5 2009-05-21 15:44:26

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] OpenSSH and Arch Linux

You're probably being blocked by /etc/hosts.deny. (When you installed, did you go through all the files that were offered to you to configure? Unlike many other distros, that step is not optional for Arch.)

Offline

#6 2009-05-21 16:02:24

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: [SOLVED] OpenSSH and Arch Linux

ataraxia wrote:

You're probably being blocked by /etc/hosts.deny. (When you installed, did you go through all the files that were offered to you to configure? Unlike many other distros, that step is not optional for Arch.)

You're right! I forgot to add sshd: 127.0.0.1 in /etc/hosts.allow. And for the Host -> VM connection I tried adding sshd:192.168.0.0 and I guess it wasn't correct. I also tried 192.0.0.0 and it didn't work, only by adding the host ip it worked!

Thanks

Offline

#7 2009-05-21 16:13:44

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: [SOLVED] OpenSSH and Arch Linux

By the way, how can I mark this thread as [SOLVED]?

Offline

#8 2009-05-21 16:25:11

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Offline

#9 2009-05-21 18:02:43

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: [SOLVED] OpenSSH and Arch Linux

Offline

Board footer

Powered by FluxBB