Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I suppose that my main Linux user account password serves as my SSH password as well. Is there a way I can modify this? As it turns out, I'd like to have a REALLY secure SSH password for obvious reasons, but a less secure local password, as it makes typing in passwords a heck of a lot easier on a machine. Is there a way I can change my account password in SSH without changing my Linux user password?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

No. But if you use a SSH key and require login using a key then you can set the key passphrase to anything you like.

share|improve this answer
    
Fyi, the linked page mostly describes generation of SSH1-RSA keys. Be careful with the instructions. –  grawity Feb 15 '11 at 14:08
    
Thanks, I'll look into it. That's always more secure than using passwords anyway, right? Do you know of a tutorial on how to get key-only authentication set up on servers and clients? –  Naftuli Tzvi Kay Feb 15 '11 at 15:52
    
Normally this is controlled by the PasswordAuthentication option in sshd_config; you can use Match to restrict it to specific users. –  Ignacio Vazquez-Abrams Feb 15 '11 at 17:13
add comment

It is possible with some PAM configuration magic. With SSH, however, key-based authentication as suggested by Ignacio is a better solution.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.