You are not logged in.
Pages: 1
I am having problems reaching my laptop from desktop via ssh
Have used ssh in the past with no real problems other than setting up ip for machines, went to try out ssh again the other day and could only ssh into laptop from laptop
now I use dhcp for router and I only want to access laptop/desktop from LAN not outside
hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
192.168.0.4 mrgreen-laptop.localdomain mrgreen-laptop
192.168.0.3 desktop.localdomain desktop
# End of file
#
# /etc/hosts.allow
#
sshd: 192.168.0.
# End of file
If I try to ssh from desktop it justs hangs.... files are the same on both machines maybe thats the problem?
Once set up I can then run sshfs which is what I really want
Have followed Wiki guide but still no luck
MrG
[if you need any more info please ask!]
Last edited by Mr Green (2008-05-17 19:27:07)
Mr Green
Offline
The problem appears to be on /etc/hosts.allow
I don't think your IP is 192.168.0.
You seem to have forgotten a digit.
Offline
Aaron - man 5 hosts_access, PATTERNS section. Mr Green's syntax is correct.
Mr Green - use ssh -v to get verbose output, see if that tells you anything. You can use up to three verbose flags, depending on how much info you need.
Offline
Ok I flattened laptop battery brb hehe
Mr Green
Offline
In my /etc/ssh/ssh_config [removed #ed lines!]
Host *
Port 22
Protocol 2
HashKnownHosts yes
StrictHostKeyChecking ask
ssh -v mrgreen@mrgreen-laptop
OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to mrgreen-laptop [192.168.0.4] port 22.
debug1: connect to address 192.168.0.4 port 22: No route to host
ssh: connect to host mrgreen-laptop port 22: No route to host
?
Mr Green
Offline
See, I didn't ask that question because I reckoned I didn't need to...
"No route to host" means exactly what it says - your basic network setup is not correct. Can you ping from desktop to laptop?
Offline
Thats my problem :-) .... tried to ping from desktop to laptop [192.168.0.4] nothing
laptop to desktop [192.168.0.3] works
Maybe Arch does not Ubuntu lol
Mr Green
Offline
I'm confused, you say your using DHCP on your router, but you're using static IP's on your computers? Any particular reason?
Offline
lo="lo 127.0.0.1"
#Next two lines hashed
#eth0="dhcp"
#INTERFACES=(lo eth0)
#
# Virtualbox bridge set up
BRIDGE_INTERFACES=(br0)
bridge_br0=(eth0)
br0="dhcp"
eth0="eth0 0.0.0.0 promisc"
INTERFACES=(lo br0 eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
Maybe I did not make much sense... I use dhcp but I have static addresses for my machines...
Mr Green
Offline
Maybe I did not make much sense... I use dhcp but I have static addresses for my machines...
I still don't get you... But its prolly my fault.
Anyways i think ifconfig and IP check on both machines would be in order.
Offline
Pages: 1