Question : Linux SSH with 2 NIC

I am trying to make my server have 2 legs. One in an internal network and one in our domain-network. What I want is to have access to the server from our domain network and at the same time be able to use ssh to "talk" with the computers in the small local network.

There are 2 problems
1: I can not manage to setup ssh without password
2: When using ssh [email protected] it takes 10-20 seconds before I am asked for the password.

I am a bit confused with the client and server typology of ssh (is my server ssh server or client??) , but I have tried to use descriptions like this one: ssh . In this explanation I see the A computer as being my server and the B computer as being one in the small network.

Technical info (also see attachments!):
- Nic 1: in our domain; has fixed IP 192.168.3.105; gateway 192.168.3.1
- Nic 2: in small local network; has fixed IP 192.168.10.98; gateway 192.168.10.1

I manage to ping into both networks.

I think it has something to do with routing or config settings. Here is my routing table:
192.168.3.0     *                      255.255.255.0   U      1      0        0 nkgs
192.168.10.0   *                      255.255.255.0   U      1      0        0 kursnett
default             192.168.3.1     0.0.0.0               UG   0     0        0 nkgs

I also did an NSLOOKUP:
[root@kursserver kurs]# nslookup 192.168.10.47
Server:            192.168.0.21
Address:      192.168.0.21#53

** server can't find 47.10.168.192.in-addr.arpa.: NXDOMAIN

..which gives server 0.21 which is the DNS of the other domain-network!!??

I have also attached pictures of the login-info of the two NIC's.
 
NIC of small local network
326386
 
 
NIC of domain nettwork
326387
 

Answer : Linux SSH with 2 NIC

Yould you please tell me, where the output was freezing (where you 20 seconds got lost?)

It might be the gssapi-w authentification.

login as [email protected]\
and edit /etc/ssh/sshd_config


Check whether you find the the line
GSSAPIAuthentication yes

and set it to now.

if it was already set to no,

then try adding the line
UseDNS no

afterwards restart the ssh server
/etc/init.d/ssh restart



Random Solutions  
 
programming4us programming4us