LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Different passwords for normal/remote login? (https://www.linuxquestions.org/questions/linux-newbie-8/different-passwords-for-normal-remote-login-804175/)

mike11 04-25-2010 11:40 PM

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.

Mr-Bisquit 04-25-2010 11:55 PM

No.
The user password and ssh passphrase are two different things.

mike11 04-26-2010 12:08 AM

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.

Tinkster 04-26-2010 12:23 AM

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

mike11 04-26-2010 02:08 AM

Thanks Tink.
Can you please provide detailed instructions how to setup this 2nd user (with the same UID, home, etc.)?

Cheers.

Tinkster 04-26-2010 03:02 AM

How about you have a quick read of "man useradd"; if that doesn't
help you come back and ask?


Cheers,
Tink

jefro 04-26-2010 04:19 PM

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.