LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration