You are not logged in.

#1 2008-05-16 15:11:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

ssh into laptop [Solved]

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 hmm

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

#2 2008-05-16 16:03:27

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: ssh into laptop [Solved]

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. smile

Offline

#3 2008-05-16 16:50:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ssh into laptop [Solved]

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

#4 2008-05-16 17:16:47

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: ssh into laptop [Solved]

Ok I flattened laptop battery brb hehe


Mr Green

Offline

#5 2008-05-16 18:11:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: ssh into laptop [Solved]

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

#6 2008-05-16 19:09:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ssh into laptop [Solved]

See, I didn't ask that question because I reckoned I didn't need to... wink

"No route to host" means exactly what it says - your basic network setup is not correct. Can you ping from desktop to laptop?

Offline

#7 2008-05-16 19:26:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: ssh into laptop [Solved]

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

#8 2008-05-17 14:52:55

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: ssh into laptop [Solved]

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

#9 2008-05-17 15:19:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: ssh into laptop [Solved]

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

#10 2008-05-17 15:35:01

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: ssh into laptop [Solved]

Mr Green wrote:

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. tongue

Anyways i think ifconfig and IP check on both machines would be in order.

Offline

Board footer

Powered by FluxBB