[SWLUG] using ssh to talk to a server?

Pete Prior swlug-discuss at nermal.org
Fri May 2 10:22:28 UTC 2008


Sounds like a network routing problem not an ssh one :|

what happens if you run

(on 192.168.1.2): route add default gw 192.168.1.2
(on 192.168.1.3): route add default gw 192.168.1.3

then try again

Pete

Mark Summerfield wrote:
> On 2008-05-02, you wrote:
>> (on 192.168.1.3)
>>
>> ssh -p 9876 192.168.1.2
> 
> I did that and got:
> 
> ssh: connect to host 192.168.1.2 port 9876: No route to host
> 
> (I tried as user mark and as root and got the same message both times.)
> 
> But on the same machine when I do ssh 192.168.1.2 it asks for my
> password (for the other machine) and when I give it I get logged in with
> no problem. (And doing ssh 192.168.1.3 on the other machine also works
> fine.)
> 
>> Pete
>>
>> Mark Summerfield wrote:
>>> Hi,
>>>
>>> I'm trying to do this:
>>>
>>> Machine 192.168.1.2 (Fedora 8)
>>>     run a server on port 9876
>>>
>>> Machine 192.168.1.3 (Kubuntu 8)
>>>     talk to machine 192.168.1.2's server on port 9876.
>>>
>>> Both machines are running sshd.
>>>
>>> I've tried using ssh -R and -L but I can't get it to work and I just
>>> don't understand the ssh man page. Surely this is easy to do?
>>>
>>> Thanks!
> 



More information about the Swlug mailing list