LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2008, 03:07 AM   #1
todos
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
can't ssh login after reboot


Hello everybody,

I have a desktop with Fedora and a laptop with Suse, I'm able to log in from my laptop to the desktop using ssh. But if I reboot the desktop, then I can't log in through the laptop.

I need to login directly on the desktop, before I can use ssh from the laptop.

Is it anyway that I can login from the laptop directly after reboot?

I want to get rid off the monitor, keyboard and etc... of the desktop and I can't have it on all the time, that's why I need to turn it on and off every now and then.

The message that I get when I try to connect to the desktop, before I login locally on the desktop is:

"ssh: connect to host localhost.localdomain port 22: no route to host"

I was checking when the sshd gets started, and for what I understand the sshd should be run at start from /etc/rc5.d when I look there I found S55sshd, which I guess is sshd. Also in /etc/init.d is sshd.

Any suggestions about what I'm missing?

In advance thanks for your help

Juan.-
 
Old 11-15-2008, 03:14 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Where are you getting that error message? What is the command you are using to ssh in?

What does "chkconfig --list | grep ssh" show on the Fedora box?
 
Old 11-15-2008, 05:44 AM   #3
todos
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hi billymayday,

I get the error message in the laptop, when I'm trying to ssh login into the desktop, just after restarting the desktop.

"ssh: connect to host localhost.localdomain port 22: no route to host"

The command that I'm using to ssh is:

ssh userxxx@localdomain.localhost

After I have login in desktop, I use the same command to ssh from the laptop to the desktop and works.

"chkconfig --list | grep ssh" show on the Fedora box:

sshd 0ff 1ff 2n 3n 4n 5n 6ff
ssh-backup: on

Thanks in advance.

Juan.-
 
Old 11-15-2008, 02:08 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
But localhost.localdomain (I assume you aren't actually trying localdomain.localhost) is the machine you are on, you need

ssh userxxx@remote.ip.address.xx

or

ssh userxxx@remote.name

Last edited by billymayday; 11-15-2008 at 02:11 PM.
 
Old 11-15-2008, 03:49 PM   #5
todos
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
well actually I am using localhost.localdomain, that's how I set up my desktop, my laptop has another domain which is linux.juan.

And when ssh into the desktop I use the user name, that I have on the desktop and accepts it. So I guess I'm actually logion my desktop.

I will change the domain name, so I'm 100% sure of it.

But, do you have any suggestions about what and where to change something, so I could login from the laptop?



Juan.-
 
Old 11-15-2008, 07:14 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I would expect that if you loon in /etc/hosts on the laptop that you see it defined in there for the laptop. localhost.localdomain is a (sort of) reserved name, so trying to use that to connect to a remote machine is not the way to go.

Try connecting via the IP rather than a hostname if you don't want to change it, but it should really have a useful name to make life easier.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[help]kernel crash and reboot during ssh shawpinlee Linux - Software 5 11-02-2008 08:15 PM
No SSH after unwished reboot Smartnow Linux - Networking 1 04-13-2008 08:08 PM
who gave the last reboot command in ssh tanveer Linux - Server 9 08-14-2007 09:08 AM
Can't reboot via ssh, but can from local terminal xymian Linux - Networking 2 09-05-2005 11:04 AM
Reboot from ssh v00d00101 Linux - Newbie 3 07-09-2003 03:33 AM


All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration