Have to click "enter" key twice to successfully login


 
Thread Tools Search this Thread
Operating Systems AIX Have to click "enter" key twice to successfully login
# 1  
Old 10-11-2013
Have to click "enter" key twice to successfully login

Hi Guys,

When using plink ( plink -ssh $IP) to connect to an AIX box, the password is correct, but always after input the password and click enter I got "access denied", then I am promted for password again, this time no matter what password I give, correct or bad, after I re-click enter, as long as the password I specified at the first time I will success authenticate to the system.
If the password I specified at the first password input prompt is bad, from the /etc/security/failedlogin log, I noticed that AIX actually will not log the failed authentication request when I click the first "enter" but until I give the second "enter".

this problem only happen to plink and AIX, other ssh client works well on AIX, and plink also works well with other kind of Unix, like HP-Unix and sco.

Can anyone here help me out? Thanks very much in advance!

Ken

---------- Post updated at 11:53 PM ---------- Previous update was at 11:41 PM ----------

Code:
e:\tmp>plink -ssh 128.17.10.90
login as:deploy
deploy@128.17.10.90`s password:  
Access denied    -> I always got access denied
deploy@128.17.10.90`s password:    
Last login:...    -> I could login if the password specified on the first try is correct
*****************************
*
* welcome to AIX verion 6.1!
*
**************************************************
xxx:home/deploy$

Moderator's Comments:
Mod Comment edit by bakunin: added CODE-tags. Please use them yourself from now on. Thank you.

Last edited by bakunin; 10-11-2013 at 05:47 AM..
# 2  
Old 10-11-2013
Do you happen to use a keyfile? (eg: ~/.ssh/id_rsa)
If so - and it uses a password too - it might be diffrent than the user's (deploy) password, which you enter 2 times.
# 3  
Old 10-11-2013
Have you made sure the messages do not come from any login scripts there are? Check ~/.kshrc, ~/.profile, or whatever there may be if they try to connect somewhere else or something such.

Ahh, almost forgot: please use CODE-tags i edited in for you yourself! Thank you!

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Open Source

Applescript if url of tab contains "text" click link

this works for what i need it to, but need to add function that will click on link if urloftab contains "300" the last url of each page ends in "300", so i figure that if I add a function that for every tab it open it will also search to see if url contains "300". if it contains "300" click link... (0 Replies)
Discussion started by: ilovedoritos
0 Replies

2. Shell Programming and Scripting

Syntax error near unexpected token `"Hit <ENTER> to continue:"'

the below code will search attr string inside makefile under the modelno on given path. echo "Enter model no for searching string inside makefile" read inputs2 #find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \; #;;I am getting below error.... (7 Replies)
Discussion started by: lathigara
7 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. AIX

ssh public key auth "Remote login for account is not allowed" ?

Hello, Using AIX 6.1 boxes. User user1 connects from box A to box B using ssh. When password authentication is used everything is fine. When I configure user1 to use public key authentication sftp client works fine(no password asked), but ssh client fails. This is sshd log: Accepted publickey... (3 Replies)
Discussion started by: vilius
3 Replies

5. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

6. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

7. Shell Programming and Scripting

Pressing "Enter/Space bar" using Net::TELNET? in Perl

I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router. How is this done? (0 Replies)
Discussion started by: xmaverick
0 Replies

8. UNIX for Dummies Questions & Answers

how to install "source" command!/ broken "login.cl"!

Hello, I am new to this forums and this is my first "asking help" message! i have 2 problems: 1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory! 2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Discussion started by: astrosona
0 Replies

9. Shell Programming and Scripting

The value of "Enter" key in UNIX

Hi , In my script I want to input "ENTER" as if "enter key" is pressed. What should I pass to do this? (2 Replies)
Discussion started by: Sreejith_VK
2 Replies

10. UNIX for Dummies Questions & Answers

No utpmx entry: you must exec "login" from lowest level "shell"

Hi I have installed solaris 10 on an intel machine. Logged in as root. In CDE, i open terminal session, type login alex (normal user account) and password and i get this message No utpmx entry: you must exec "login" from lowest level "shell" :confused: What i want is: open various... (0 Replies)
Discussion started by: peterpan
0 Replies
Login or Register to Ask a Question