05-13-2014
How to check or remove IP address from a hashed known_hosts file?which
Hi,
In my server, the hostname and IP addresses are added to the known_hosts which then be hashed by ssh-keygen -H -f. Is it possible to check if an IP address has already been added to the hashed known_hosts to avoid duplications (I think there will be problems if there are duplicated IP addresses in known_hosts)? Or delete the entry if there are duplicated hostname and IP address in the hashed known_hosts?
Thank you.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i "accidentedly" added some logical ip address to my solaris 8 machine.
now i want to remove them. i already man ifconfig but some how i just keep getting the wrong syntax.
this is the command i used to add
ifconfig hme0 addif 192.168.100.10 netmask 255.255.2550.0 up
so, now... (2 Replies)
Discussion started by: champion
2 Replies
2. Programming
Hello everybody!
I woul quickly need a function
bool ParseIPString(char*)
that parses a string to check if it's in IP format.
thanks in advance for any help!
best regards,
nadiamihu (1 Reply)
Discussion started by: nadiamihu
1 Replies
3. Shell Programming and Scripting
Hi all,
Can you please suggest a few lines of if statement to check if a variable is an ip address purely in bash/sh?
Thanks,
Marc (3 Replies)
Discussion started by: marcpascual
3 Replies
4. Shell Programming and Scripting
Hi,
Here we have a situation where we have to check the file size and if the file size is greater than 0 bytes then remove the files from the directory.
1)EdwTrxn 2)EdwPost 3)EdwTndr 4)EdwSls 5)EdwSlsRej 6)EdwTndrRej
Files will be created in the directory in the following manner.
... (5 Replies)
Discussion started by: srivsn
5 Replies
5. Shell Programming and Scripting
Hi,
I keep having to remove lines have an IP address as the second field from my awstats logs, as it makes the processing fail.
Rather than do it individually each time (once or twice a week) it fails, I'd like to remove any lines from the file that have 3 digits and then a dot as the start... (1 Reply)
Discussion started by: sfisk
1 Replies
6. UNIX for Dummies Questions & Answers
How to display hashed commands for your current shell session?
Thanks. (1 Reply)
Discussion started by: zhshqzyc
1 Replies
7. AIX
Dears
i have one primary server and 4 secondary server i need to access all my secondary servers from the primary server without using the password
how do i configure the known_hosts to do this . (1 Reply)
Discussion started by: thecobra151
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have a file known_hosts where i want to remove a key, but i don't how to do remove a client on it ?
Can you help me please ?
Thanks very much (1 Reply)
Discussion started by: jose2204
1 Replies
9. Shell Programming and Scripting
Hi Guys,
I have below directory where there are certain files. Something like below
country_dir
aus_01.txt
nz_01.txt
aus_02.txt
bd.txt
property.txt
aus
nz
bd
I need to remove the header of the file which ends with _01.txt while copying from country directory to another... (15 Replies)
Discussion started by: rohit_shinez
15 Replies
10. UNIX for Beginners Questions & Answers
In my ignorance I deleted the known_hosts file on private server. I am not sure what the file type is supposed to be. In general, I have been having problems with ssh and passwords. For some reason, despite having generated a private/public key pair and successfully saving the .pub file onto the... (2 Replies)
Discussion started by: Circuits
2 Replies
LEARN ABOUT DEBIAN
rlm_pap
rlm_pap(5) FreeRADIUS Module rlm_pap(5)
NAME
rlm_pap - FreeRADIUS Module
DESCRIPTION
The rlm_pap module authenticates RADIUS Access-Request packets that contain a User-Password attribute. The module should also be listed
last in the authorize section, so that it can set the Auth-Type attribute as appropriate.
When a RADIUS packet contains a clear-text password in the form of a User-Password attribute, the rlm_pap module may be used for authenti-
cation. The module requires a "known good" password, which it uses to validate the password given in the RADIUS packet. That "known good"
password must be supplied by another module (e.g. rlm_files, rlm_ldap, etc.), and is usually taken from a database.
CONFIGURATION
The only relevant configuration item is:
auto_header
If set to "yes", the module will look inside of the User-Password attribute for the headers {crypt}, {clear}, etc., and will auto-
matically create the appropriate attribute, with the correct value.
This module understands many kinds of password hashing methods, as given by the following table.
Header Attribute Description
------ --------- -----------
{clear} Cleartext-Password clear-text passwords
{cleartext} Cleartext-Password clear-text passwords
{crypt} Crypt-Password Unix-style "crypt"ed passwords
{md5} MD5-Password MD5 hashed passwords
{smd5} SMD5-Password MD5 hashed passwords, with a salt
{sha} SHA-Password SHA1 hashed passwords
{ssha} SSHA-Password SHA1 hashed passwords, with a salt
{nt} NT-Password Windows NT hashed passwords
{x-nthash} NT-Password Windows NT hashed passwords
{lm} LM-Password Windows Lan Manager (LM) passwords.
The module tries to be flexible when handling the various password formats. It will automatically handle Base-64 encoded data, hex
strings, and binary data, and convert them to a format that the server can use.
It is important to understand the difference between the User-Password and Cleartext-Password attributes. The Cleartext-Password attribute
is the "known good" password for the user. Simply supplying the Cleartext-Password to the server will result in most authentication meth-
ods working. The User-Password attribute is the password as typed in by the user on their private machine. The two are not the same, and
should be treated very differently. That is, you should generally not use the User-Password attribute anywhere in the RADIUS configura-
tion.
For backwards compatibility, there are old configuration parameters which may be work, although we do not recommend using them.
SECTIONS
authorize authenticate
FILES
/etc/raddb/radiusd.conf
SEE ALSO
radiusd(8), radiusd.conf(5)
AUTHOR
Alan DeKok <aland@freeradius.org>
6 June 2008 rlm_pap(5)