Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-21-2010, 10:35 PM
|
#1
|
LQ Newbie
Registered: Dec 2010
Posts: 27
Rep:
|
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.
|
|
|
12-22-2010, 12:43 AM
|
#2
|
LQ Newbie
Registered: Dec 2010
Posts: 27
Original Poster
Rep:
|
Should I have some kind of auto login at boot up with minimal privileges?
If so how?
Cheers
|
|
|
12-22-2010, 09:02 AM
|
#3
|
Member
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83
Rep:
|
What is the OS of the server that you must login locally to before you are able to ssh to it?
|
|
|
12-22-2010, 02:32 PM
|
#4
|
LQ Newbie
Registered: Dec 2010
Posts: 27
Original Poster
Rep:
|
It's a ubuntu server 10.10 I'm trying to log into to from a windows xp desktop and windows 7 laptop
|
|
|
12-22-2010, 03:20 PM
|
#5
|
Member
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502
Rep:
|
did sshd start with the right configuration?
|
|
|
12-23-2010, 08:14 AM
|
#6
|
Member
Registered: Feb 2010
Location: Raleigh, NC
Posts: 83
Rep:
|
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'.
|
|
|
12-23-2010, 06:29 PM
|
#7
|
Member
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308
Rep:
|
Did you encrypt your /home/<USERNAME>? If you did that would explain why you are required to login first.
|
|
|
12-25-2010, 02:48 AM
|
#8
|
Member
Registered: Oct 2003
Location: USA
Distribution: Red Hat 9, Ubuntu 10; Windows Server 2003 and XP
Posts: 34
Rep:
|
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.
|
|
|
02-16-2011, 03:43 AM
|
#9
|
LQ Newbie
Registered: Dec 2010
Posts: 27
Original Poster
Rep:
|
Thanks for your help guys, can't remember what I did but it's been working for a while
|
|
|
All times are GMT -5. The time now is 10:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|