Sponsored Content
Operating Systems AIX Passwordless SSH problem with AIX machines Post 302749131 by filosophizer on Thursday 27th of December 2012 03:09:55 PM
Old 12-27-2012
On both machines

Code:
# cat /etc/syslog.conf | grep auth
#       kern,user,mail,daemon, auth,... (see syslogd(AIX Commands Reference))
#

So I edited the syslog.conf and added as requested


on machine A : 10.1.1.105 = standby
after doing few ssh from the user oraprod & root

Code:
# cat /var/adm/authlog

Dec 27 22:31:49 standby sshd[1237032]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 27 22:31:51 standby sshd[1237032]: Accepted password for root from 10.1.1.120 port 34557 ssh2
Dec 27 22:32:07 standby sshd[1237038]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 27 22:32:09 standby sshd[1237038]: Failed password for root from 10.1.1.120 port 34558 ssh2
Dec 27 22:32:09 standby syslog: ssh: failed login attempt for root from test1
Dec 27 22:32:11 standby sshd[1237038]: Failed password for root from 10.1.1.120 port 34558 ssh2
Dec 27 22:32:11 standby syslog: ssh: failed login attempt for root from test1
Dec 27 22:32:13 standby sshd[1237038]: Failed password for root from 10.1.1.120 port 34558 ssh2
Dec 27 22:32:13 standby sshd[1245272]: syslog: fopen on /dev/null failed, errno 2
Dec 27 22:32:13 standby syslog: ssh: failed login attempt for root from test1
Dec 27 22:32:45 standby sshd[1241136]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 27 22:32:46 standby sshd[1245282]: syslog: fopen on /dev/null failed, errno 2
Dec 27 22:33:53 standby sshd[1241154]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 27 22:33:53 standby sshd[213108]: syslog: fopen on /dev/null failed, errno 2
Dec 27 22:34:22 standby sshd[213118]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 27 22:34:25 standby sshd[213118]: Accepted password for root from 10.1.1.120 port 34563 ssh2
Dec 27 22:34:36 standby su: from root to oraprod at /dev/pts/2
#


Machine B: 10.1.1.120 = test1

Code:
# cat /var/adm/authlog

Dec 28 01:34:13 test1 sshd[340120]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 28 01:34:16 test1 sshd[335952]: syslog: fopen on /dev/null failed, errno 2
Dec 28 01:34:53 test1 sshd[360646]: warning: /etc/hosts.allow, line 1: missing ":" separator
Dec 28 01:34:53 test1 sshd[340122]: syslog: fopen on /dev/null failed, errno 2
#


Machine A /etc/hosts.allow had the ip address of Machine B which is
cat /etc/hosts.allow
10.1.1.120

and Machine B had the IP address of Machine A
cat /etc/hosts.allow
10.1.1.105

Then i removed the IP addresses from both files and the files are empty and did ssh from Machine A to Machine B and the log file is below

but when I do as a root the ssh log file will catch it
but when i do as oraprod
nothing appears in the log file

Code:
Dec 28 02:20:30 test1 sshd[336016]: Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
Dec 28 02:20:30 test1 sshd[336016]: Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
Dec 28 02:20:35 test1 sshd[336018]: Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
Dec 28 02:20:35 test1 sshd[336018]: Authentication refused: bad ownership or modes for file /.ssh/authorized_keys
Dec 28 02:20:40 test1 sshd[364778]: Authentication refused: bad ownership or modes for file /.ssh/authorized_keys

I redited /etc/hosts.allow on both machines and added the following

$ cat /etc/hosts.allow
ALL:ALL

then log file

Code:
Machine A
Dec 27 23:34:18 standby sshd[303216]: Received signal 15; terminating.
Dec 27 23:34:21 standby sshd[303218]: Server listening on 0.0.0.0 port 22.
Dec 27 23:34:21 standby sshd[303218]: error: Bind to port 22 on :: failed: The socket name is already in use..
Dec 27 23:34:21 standby sshd[303218]: error: Couldn't create pid file "/usr/local/etc/sshd.pid": A file or directory in the path name does not exist.
Dec 27 23:34:50 standby su: from root to oraprod at /dev/pts/2


Machine B
Dec 27 23:23:54 test1 su: from root to oraprod at /dev/pts/2
Dec 27 23:34:11 test1 sshd[348340]: Received signal 15; terminating.
Dec 27 23:34:14 test1 sshd[348342]: Server listening on 0.0.0.0 port 22.
Dec 27 23:34:14 test1 sshd[348342]: error: Bind to port 22 on :: failed: The socket name is already in use..
Dec 27 23:34:14 test1 sshd[348342]: error: Couldn't create pid file "/usr/local/etc/sshd.pid": A file or directory in the path name does not exist.
Dec 27 23:35:13 test1 su: from root to oraprod at /dev/pts/2


Last edited by filosophizer; 12-27-2012 at 04:40 PM..
 

10 More Discussions You Might Find Interesting

1. Red Hat

X11 forwarding problem between 2 RHEL4 machines with SSH

X11 forwarding problem between 2 RHEL4 machines with SSH Already configured the following on both machines under /etc/ssh Under sshd_config: UsePAM no AllowTcpForwarding yes Under ssh_config: ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes ----------------------------- Using... (1 Reply)
Discussion started by: panggou
1 Replies

2. AIX

Printing problem in AIX machines running SAP

Hi all, We have a intermittent problem with printing from SAP running on AIX5.2 . Version of Sap is 4.6b. When a print is fired from SAP, the spool is created fine and then transferred to the host spool system (in this case the AIX Print queue). The problem seems to be happening when AIX... (3 Replies)
Discussion started by: pauldavi26
3 Replies

3. AIX

Passwordless authentication via SSH

I am trying to implement passwordless authentication via ssh2. I have used the well documented technique of generating a key pair with a blank passphrase on my client machine, and installing the public key on the destination server (AIX 5.3) in the user's .ssh2 directory. I have used this technique... (1 Reply)
Discussion started by: RegX
1 Replies

4. HP-UX

Help on passwordless ssh...

Hi, Can someone help me on ssh-keygen usage...? I used ssh-keygen after which "id.pub" file was generated in system1's > .ssh directory... I copied the same into the remote system system2 > .ssh directory as "authorized_keys" file. Now i tried ssh connection from system 1 to system... (7 Replies)
Discussion started by: EmbedUX
7 Replies

5. Shell Programming and Scripting

ssh passwordless

Hi, I want to login to a remote server and sftp files without password prompting. So, I created private-public key pair as follows: user1@server1.com .ssh]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/user1/.ssh/id_rsa): Enter... (7 Replies)
Discussion started by: dips_ag
7 Replies

6. UNIX for Dummies Questions & Answers

passwordless ssh

hi, i have tried with passwordless shh in google.. i followed the below steps ... user:~> ssh-keygen -t rsa Enter file in which to save the key (/home/cantin/.ssh/id_rsa):key.txt Enter passphrase (empty for no passphrase): Enter same passphrase again: till this step i... (0 Replies)
Discussion started by: arunmanas
0 Replies

7. Red Hat

Passwordless SSH from Linux to AIX

Hi, I am trying to setup passwordless SSH from Redhat Linux EL 5 to AIX 6 and it worked for few boxes and didn't for few other. Not sure as to why it's happening. Pl find below the log when i run ssh in verbose mode. TIA Reddy # ssh -v aixora04 OpenSSH_4.3p2, OpenSSL... (3 Replies)
Discussion started by: reddyr
3 Replies

8. Shell Programming and Scripting

passwordless ssh

My main concern is, i have to login into 300 linux server and all are having same userid and password. I dont want to create any key for each server to login . Is there a way to run the shell script ? (3 Replies)
Discussion started by: Mani2512
3 Replies

9. UNIX for Advanced & Expert Users

passwordless ssh connection problem

I need to ssh from Host A to Hosts B and C. A->B works, but A->C does not. I can do rcp/rcmd A->B and A->C. B and C are identical systems. All three are SCO OSR 5. More relevant info: Host A$ ssh -V OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004 Hosts B and C are:... (5 Replies)
Discussion started by: migurus
5 Replies

10. UNIX for Advanced & Expert Users

Passwordless ssh

Hi I have created a user on a linux server and created a passwordless ssh key. I've echoed the key into the authorized_keys file for the user. I've added a series of forced commands to the key. From my laptop - logged in as myself - I can ssh into the server as that user and the commands... (3 Replies)
Discussion started by: steadyonabix
3 Replies
All times are GMT -4. The time now is 07:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy