LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2010, 10:35 PM   #1
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Rep: Reputation: 0
can't login through putty unless I have already logged into ubuntu server


Hi all,

Just a bit confused about this.

Yesterday I setup logging in through putty client with keys, and password disabled, could log in from all machines on my network (xp and 7) with putty.

When I finished I shut down the server.

Today I turned on the server box and thought I'd try logging in through putty. It kept telling me the server was rejecting my key.

I plugged in a monitor and keyboard into the server and logged in via password then had no problem logging in through putty client.

Question is, every time I shut the server down do I have to plug in the monitor and keyboard, then login, to be able to login remotely?

I was just about to setup WOL but wanted to know how to resolve this.

Thanks.
 
Old 12-22-2010, 12:43 AM   #2
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Should I have some kind of auto login at boot up with minimal privileges?
If so how?

Cheers
 
Old 12-22-2010, 09:02 AM   #3
jwl17330536
Member
 
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83

Rep: Reputation: 22
What is the OS of the server that you must login locally to before you are able to ssh to it?
 
Old 12-22-2010, 02:32 PM   #4
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
It's a ubuntu server 10.10 I'm trying to log into to from a windows xp desktop and windows 7 laptop
 
Old 12-22-2010, 03:20 PM   #5
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
did sshd start with the right configuration?
 
Old 12-23-2010, 08:14 AM   #6
jwl17330536
Member
 
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83

Rep: Reputation: 22
Not 100% sure of the Ubuntu commands, but I know older Debian distros used 'update-rc.d'... Try running "sudo update-rc.d sshd defaults"

Reboot the server and see if it is running prior to having to login an x session.

I'm not really sure why sshd wouldn't be running properly until you login... rather than it just not working at runlevel 5. Then again, I've never really understood a lot of the Ubuntu 'features'.
 
Old 12-23-2010, 06:29 PM   #7
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Did you encrypt your /home/<USERNAME>? If you did that would explain why you are required to login first.
 
Old 12-25-2010, 02:48 AM   #8
jpat1023
Member
 
Registered: Oct 2003
Location: USA
Distribution: Red Hat 9, Ubuntu 10; Windows Server 2003 and XP
Posts: 34

Rep: Reputation: 15
I'm currently running a headless Ubuntu 10.10 server as well.
I have no problems logging into ssh upon initial start so I'm not really sure how to diagnose your problem.

What I can add to the conversation is to suggest the installation of a vnc variant so that you don't have to connect a keyboard and monitor every time you need to diagnose a problem.

Good luck.
 
Old 02-16-2011, 03:43 AM   #9
rough60
LQ Newbie
 
Registered: Dec 2010
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for your help guys, can't remember what I did but it's been working for a while
 
  


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
Not able to login to server thru console but able to login via network using putty maxy7710 Linux - Newbie 6 03-02-2022 02:42 AM
[SOLVED] Putty - ssh to ubuntu server 9.10 avtandil_k Linux - Newbie 4 04-05-2010 02:28 PM
ldap server login error when logged in as admin g.navink Linux - Server 3 03-23-2010 05:12 AM
putty ssh login in Linux server alexz Linux - General 5 06-08-2007 12:22 PM
Ubuntu 6.06 Server(SSH Setup/Putty) TechMansoor Linux - Networking 1 12-16-2006 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:20 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
Open Source Consulting | Domain Registration