LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2010, 12:40 AM   #1
mike11
Member
 
Registered: Apr 2009
Posts: 222

Rep: Reputation: 17
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.
 
Old 04-26-2010, 12:55 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
No.
The user password and ssh passphrase are two different things.
 
Old 04-26-2010, 01:08 AM   #3
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
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.
 
Old 04-26-2010, 01:23 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 04-26-2010, 03:08 AM   #5
mike11
Member
 
Registered: Apr 2009
Posts: 222

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

Cheers.
 
Old 04-26-2010, 04:02 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 04-26-2010, 05:19 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
You could use other means to authenticate a user by ssh such as a certificate based authentication rather than password.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic login passwords for websites gone? ieatbunnies Linux - Newbie 1 02-25-2010 11:20 PM
how to make remote login and remote installation via libssh vdx Programming 5 09-10-2007 11:23 PM
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 04:01 AM
Login Passwords Monkeysee Linux - General 3 07-12-2003 02:22 AM
linux login and passwords icunow Linux - Laptop and Netbook 16 06-15-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration