Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Dec 23, 2009 4:35 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
I'm trying to change the password I use to login via SSH but it doesn't seem to be working. When I type the new password to login via Putty, it's wrong.. When I type the OLD password, it's correct. Have I forgotten something?

Thanks

UPDATE: OOPS! Now I really screwed up. Now SSH it's just plain refusing connections. Help!


Top
   
 Post subject:
PostPosted: Wed Dec 23, 2009 7:12 am 
Offline
Junior Member

Joined: Sat Apr 14, 2007 11:38 am
Posts: 29
Can you get in through the Ajax console, or Lish?
These are on the Linode Manager web page.

Another way in, also using the Linode Manager, is to shut the machine down, make a Recovery configuration which uses the Recovery (Finnix) kernel, and boot into that. You'll need to use Ajax or Lish again to get in. Once in, mount your virtual drives (or at least the one with /etc on it). You can then either use chroot and passwd (this is probably safest, but maybe more complicated), or change the password files directly (/etc/passwd and /etc/shadow).

You should find specific instructions through google.

How are you trying to change your password normally? Are you using the passwd command?


Top
   
 Post subject:
PostPosted: Wed Dec 23, 2009 7:18 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Sorry to be of trouble.

What I did was generate new keys for my SSH but included passwords for them.. When I tried to restart ssh again, of course, it couldn't use them because they were password protected. Removing the passwords seemed to solve the problem.


Top
   
 Post subject:
PostPosted: Wed Dec 23, 2009 7:25 am 
Offline
Junior Member

Joined: Sat Apr 14, 2007 11:38 am
Posts: 29
It's no trouble - I was bored.

I use Pageant for handling keys with passwords in Windows. It works well. I don't think you need to have anything in the Putty configuration for the connection - it seems to automatically look for pageant, then get the decrypted key from there.

I think I've had trouble before trying to use keys that were made on a Windows machine, using Putty, on a Linux machine, or vice versa.

And a good tip is to always have a spare ssh window open and running, while you're messing about with ssh stuff. You can even restart sshd on the server and it won't affect active connections. Don't close the spare until you can open a new connection!


Top
   
 Post subject:
PostPosted: Wed Dec 23, 2009 7:27 am 
Offline
Junior Member

Joined: Sat Apr 14, 2007 11:38 am
Posts: 29
And you don't need to restart the server when you add (or remove) keys.

Just put the public key in ~/.ssh/authorized_keys


Top
   
 Post subject:
PostPosted: Wed Dec 23, 2009 10:20 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Quote:
And a good tip is to always have a spare ssh window open and running, while you're messing about with ssh stuff. You can even restart sshd on the server and it won't affect active connections. Don't close the spare until you can open a new connection!


That's a really good idea :-) Thanks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group