LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-16-2007, 06:50 AM   #1
mperkel
LQ Newbie
 
Registered: Oct 2005
Posts: 15

Rep: Reputation: 0
SSH Login with no password


How do you set up an SSH account to use no passwords? I'm not looking for a key pair trick. What I literally want to do is make an account that anyone can log into with either no password or any password. How do I do that?
 
Old 01-16-2007, 08:26 AM   #2
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
I have a hard time imagining why.... but you can configure ssh to use PAM, and configure PAM to just always accept whatever is thrown at it for SSH.
 
Old 01-16-2007, 08:30 AM   #3
mperkel
LQ Newbie
 
Registered: Oct 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I only want to have this for specific account names. How would I do that?

What I'm doing is allowing anyone to log into certain trap accounts with any password but as soon as they log in then I run a script that locks out their IP address.
 
Old 01-16-2007, 08:42 AM   #4
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
PAM - Pluggable Authentication Module(s)

You could have a field day scripting whatever authentication scheme you please.

pam_script installation and examples:
http://linux.bononline.nl/linux/pamscript/01/build.html

DO NOT screw with '/etc/pam.d/login' like the examples. One mess up and you can't login to your machine anymore. If this happens reboot your machine with: init=/bin/bash on the kernel command line.
 
  


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
ssh login without password for only one user zhjim Linux - Server 4 11-21-2006 04:31 PM
SSH without password hywaydave Linux - Security 3 02-02-2005 03:40 AM
how to deny password login in the ssh? please u2911 Linux - Security 4 07-02-2004 12:42 AM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
password less SSH maaand Linux - Networking 0 04-23-2002 08:13 PM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration