Different passwords for normal/remote login?
Hi All,
Is it possible to have multiple passwords on the same account, where one password allows only normal login and another only when accessing the machine remotely (for example, via ssh)?. Thanks, Mike. |
No.
The user password and ssh passphrase are two different things. |
Thanks for replying. I'll clarify my question:
is it possible to have two different passwords such that: 1) when I sit in front of the machine and login via the login screen with a not-to-difficult password. This password will only work for the login screen. 2) when I ssh to the machine from elsewhere I will login with a longer password. This password will only work for ssh. Thanks. |
No, ssh will use the same password from the same passwordfile.
What you COULD do is create a second username with the same numerical UID as the first one, the same home and all that. Give him a more complex password and use that name for ssh. Cheers, Tink |
Thanks Tink.
Can you please provide detailed instructions how to setup this 2nd user (with the same UID, home, etc.)? Cheers. |
How about you have a quick read of "man useradd"; if that doesn't
help you come back and ask? Cheers, Tink |
You could use other means to authenticate a user by ssh such as a certificate based authentication rather than password.
|
All times are GMT -5. The time now is 09:02 AM. |