Configuring /etc/hosts.equiv file in AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX Configuring /etc/hosts.equiv file in AIX 5.3
# 1  
Old 10-07-2010
Configuring /etc/hosts.equiv file in AIX 5.3

Need help in configuring /etc/host.equiv file. Though i configure the /etc/hosts.equiv file to prevent users from connecting remotely to the local server " -host" in /etc/hosts.equiv file, it allows the users to login from remote machine. we don't have .rhosts file on the local server. Could you please let me know, how to configure the /etc/hosts.equiv file to prevent login from remote hosts.

Also please let me know, how to configure /etc/hosts.equiv to allow login from remote server without entering password.
# 2  
Old 10-08-2010
What service do you use to login ie. want to have blocked? telnet? ssh? ...?
# 3  
Old 10-08-2010
we use ssh for login
# 4  
Old 10-08-2010
Quote:
Originally Posted by saikiran_1984
Also please let me know, how to configure /etc/hosts.equiv to allow login from remote server without entering password.
You don't do this when you use ssh and AIX. You can allow/disallow remote login on a per-user basis using the command

Code:
chuser -a rlogin=[false|true] <username>

or (which is essentially the same) by modifying the respective stanza in "/etc/security/users", for instance:

Code:
username:
       su = true
       sugroups = admin
       login = false
       rlogin = false

If you want to log on to a system/user combination from another system/user combination without using a password then generate ssh-keys and put them into the file ~/.ssh/authorized_keys on the target system.

Example: you want userA@systemA to be able to log on as userB@systemB without using a password.

1. create a ssh-key as userA@systemA using the "ssh-keygen" utility. Enter no password when asked for one (just press <ENTER>)

2. Log on as userB at systemB, create a directory ".ssh" (if it is not already there) and create a file "authorized_keys" in this directory (if it is not there already).

3) copy the content of "~/.ssh/id_rsa.pub" (the name can vary slightly depending on the crypto-algorithm you use) from userA@systemA to the file userB@systemB:~/.ssh/authorized_keys

WARNING: beware of line breaks when copying the key via X-copy&paste. Remove them in case there are some.

4. Save the file. You should now be able to log on from userA@systemA to userB@systemB without passwords. This extends to file transfers with scp.

I hope this helps.

bakunin

Last edited by Yogesh Sawant; 10-21-2010 at 06:09 AM.. Reason: removed a broken tag
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to copy a tar file on a series of remote hosts and untar it on those hosts?

Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh. Actions to perform within a single ssh session via shell script - copy a file - untar at destination (remote host) OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies

2. AIX

aix tcp wrappers hosts.allow hosts.deny?

hi all just installed the netsec.options.tcpwrapper from expansion pack, which used to be a rpm, for my aix 6.1 test box. it is so unpredictable. i set up the hosts.deny as suggested for all and allow the sshd for specific ip addresses/hostnames. the tcpdchk says the hosts allowed and... (0 Replies)
Discussion started by: wf201626
0 Replies

3. AIX

hosts.equiv - Entries

Hi, I have found such these entries in the hosts.equiv file in the AIX (6.1/5.3): root host123 oracle host5487 Please tell the risks? Can these hosts enter the system without passwords?? should these entries be removed? Thanks Naveed (1 Reply)
Discussion started by: naveedaix
1 Replies

4. AIX

Configuring ACL on AIX 5.3

Hello All, Let me quickly come down to my problem.. I have a file with following description: == root:/me01/tia/filetr ans # ls -lrt DW_NUM_OF_ROWS_TSP.txt -rwxrwxr-- 1 tiaoas oinstall 43 Jun 07 17:12 DW_NUM_OF_ROWS_TSP.txt root:/me01/tia/filetrans # aclget DW_NUM_OF_ROWS_TSP.txt *... (3 Replies)
Discussion started by: thisissouvik
3 Replies

5. AIX

Configuring AIX with Windows AD

Hey Guys Has anyone out here tried configuring AIX as AD clients for authentication? I have seen redbooks explaining stuffs but has it worked well for anyone? Thanks Bala (1 Reply)
Discussion started by: balaji_prk
1 Replies

6. AIX

Problem:Configuring Apache 2.2.11 in AIX 5.3

Hi All I am new to Apache and AIX and trying to configure Subversion tool in IBM machine with AIX 5.3.Apache is required for client to connect to Subversion Server with http protocol. 1.Installed Apache 2.2.11 and its dependencies via RPM 2.Configured httpd.conf file. 3.Started "httpd"... (1 Reply)
Discussion started by: rajivdp
1 Replies

7. AIX

hosts.allow on aix 5.3

Hi All, I need to allow "sftp on ssh" to ALL on the server. How do I modify hosts.allow to accept all incoming sftp? Thanks for any comment you may add. (4 Replies)
Discussion started by: itik
4 Replies

8. AIX

Configuring new disks on AIX cluster

We run two p5 nodes running AIX 5L in a cluster mode (HACMP), both the nodes share external disk arrays. Only the primary node can access the shared disks at a given point of time. We are in the process of adding two new disks to the disk arrays so as to make them available to the existing... (3 Replies)
Discussion started by: dnicky
3 Replies

9. AIX

Configuring Network Printer in IBM AIX

Hi, We have two IBM pSeires servers running IBM AIX. I want to configure the IBM servers to print on the network printer. Here is the following configuration IBM Server-I IP Add: 192.168.0.5 IBM Server-II IP Add: 192.168.0.6 Network Printer IP Add: 192.168.0.15 I'm new to IBM AIX OS.... (0 Replies)
Discussion started by: berhanemt
0 Replies

10. AIX

Configuring Color Laser ptr in AIX

Hi All, I have Network color laser printer which is to be configured in AIX5L. The Model of the printer is OKI C3200. Will it is supported with AIX 5..? I could not find any drivers for this. Will any compatible drivers are available for this printer... I tried with the default drivers hplj-4... (2 Replies)
Discussion started by: helloajith
2 Replies
Login or Register to Ask a Question

Featured Tech Videos