ssh host login problem

This is a discussion on ssh host login problem within the Linux Networking forums, part of the Linux Forums category; flap flop <flap@home.net> wrote: > Running two machines with Fedora Core 1, I want to make ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-10-2004
Cameron Kerr
 
Posts: n/a
Default Re: ssh host login problem

flap flop <flap@home.net> wrote:

> Running two machines with Fedora Core 1, I want to make an ssh login from
> one machine, salvador, 192.168.2.11, into another one, manaus,
> 192.168.1.11.


Hopefully, your hosts file actually looks like the following, rather
than what you posted. You should tell your news agent/editor not to
automatically wrap stuff, or paste it in a non-wrapping mode (use :a in
vim and then paste, for instance).

[root@manaus root]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.1 fortaleza.brasil fortaleza
192.168.1.11 manaus.brasil manaus
192.168.2.11 salvador.brasil salvador

Hmm, two things spring to mind.

1) Do you realise that these machines are in different subnets? Unless
you are using a router, you should have salvador should most likely
have an address in the 192.168.1 network, such as 192.168.1.12, but
that is not your problem from what you have described.

2) Does this match what is in /etc/host on salvador?

> [root@manaus root]# cat /etc/hosts.allow
> hotwayd : 127.0.0.1
> hotwayd : 192.168.1.11


Should this not be 192.168.2.11, from what you have given? (Not that
this is your problem).

Hmm, challenging. Can ario@manaus ssh to ario@manaus? What about sshing
to ario@localhost from manaus?

Does it work if you use the -4 option?

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
  #2 (permalink)  
Old 06-11-2004
flap flop
 
Posts: n/a
Default ssh host login problem

Running two machines with Fedora Core 1, I want to make an ssh login from
one machine, salvador, 192.168.2.11, into another one, manaus,
192.168.1.11.

salvador is in manaus' /etc/hosts and /etc/hosts.allow files:

[root@manaus root]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost 192.168.1.1
fortaleza.brasil fortaleza 192.168.1.11 manaus.brasil
manaus 192.168.2.11 salvador.brasil salvador


[root@manaus root]# cat /etc/hosts.deny ALL : ALL


[root@manaus root]# cat /etc/hosts.allow hotwayd : 127.0.0.1
hotwayd : 192.168.1.11
portmap : 192.168.2.11
lockd : 192.168.2.11
mountd : 192.168.2.11
rquotad : 192.168.2.11
statd : 192.168.2.11
sshd : 192.168.2.11


So that should work. However, when I try to login, all I get is a closed
connection:

[ario@salvador ario]$ ssh manaus
ario@manaus's password:
Connection to manaus closed by remote host. Connection to manaus closed.

(I did type in the right password).
/var/log/messages says:
"Jun 11 02:23:01 manaus sshd(pam_unix)[7739]: session opened for user ario
by (uid=500)"

And when I put debugging on, ssh says: ". lots
. of
. stuff
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0