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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
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 |