SSH session closes after typing correct password


 
Thread Tools Search this Thread
Operating Systems AIX SSH session closes after typing correct password
# 1  
Old 02-07-2012
SSH session closes after typing correct password

hi guys need some help. when ever i'm login ssh to aix server session always closed.

when trying t0 type wrong password the session still continues, but we tried the correct password it automatically ends.

what could be the problem to this

please see .profile details


PATH=$PATH:$CTL_RUNTIME_DIR/is/bin:$CTL_RUNTIME_DIR/is/system:$CTL_RUNTIME_DIR/db/bin:$CTL_RUNTIME_DIR/db/system:/usr/local/mbl_sudo/bin:/usr/bin:. export PATH
set -o vi
cd ../../is/log
TERM=vt100
export TERM
stty erase ^?
echo ""
echo "###############################################"
echo "#### ####"
echo "#### REASON for using james login ####"
echo "#### ####"
echo "###############################################"
echo ""
echo "Enter Your Name : "
read YOURNAME
echo "Enter Your Reason for using James login : "
read REASON
THIS_ASSET=`who -m | awk '{ print $NF }'`
echo "$YOURNAME | `date` | $REASON | $THIS_ASSET" >> /home/runtime/is/log/reasons.log
# 2  
Old 02-07-2012
Check is user password is expired .. OR tty login is disabled for user .
# 3  
Old 02-07-2012
Quote:
Originally Posted by Shirishlnx
Check is user password is expired .. OR tty login is disabled for user .
checked the account but was enable. Thanks
# 4  
Old 02-07-2012
I faced this probs when my account was expired .. on Redhat and CentOS .

I changed my password and now it's working
## Check
# change -l username
# chage -l shirish
Minimum: 0
Maximum: 99999
Warning: 15
Inactive: -1
Last Change: Feb 07, 2012
Password Expires: Never
Password Inactive: Never
Account Expires: Never

OR check shadow file as below if not change
shirish:$1$MpavTBqg$wa827pWNqFMlCDzSx9D.w0:15377:0:99999:15:::

OR you can edit this file by
# chage shirish
Changing the aging information for x82104
Enter the new value, or press ENTER for the default
Minimum Password Age [0]:
Maximum Password Age [0]: 99999
Last Password Change (YYYY-MM-DD) [2012-02-07]:
Password Expiration Warning [15]:
Password Inactive [-1]:
Account Expiration Date (YYYY-MM-DD) [1969-12-31]:
--> Press Enter for default

-- Shirish Shukla
# 5  
Old 02-07-2012
Quote:
Originally Posted by Shirishlnx
I faced this probs when my account was expired .. on Redhat and CentOS .

I changed my password and now it's working
## Check
# change -l username
# chage -l shirish
Minimum: 0
Maximum: 99999
Warning: 15
Inactive: -1
Last Change: Feb 07, 2012
Password Expires: Never
Password Inactive: Never
Account Expires: Never

OR check shadow file as below if not change
shirish:$1$MpavTBqg$wa827pWNqFMlCDzSx9D.w0:15377:0:99999:15:::

OR you can edit this file by
# chage shirish
Changing the aging information for x82104
Enter the new value, or press ENTER for the default
Minimum Password Age [0]:
Maximum Password Age [0]: 99999
Last Password Change (YYYY-MM-DD) [2012-02-07]:
Password Expiration Warning [15]:
Password Inactive [-1]:
Account Expiration Date (YYYY-MM-DD) [1969-12-31]:
--> Press Enter for default

-- Shirish Shukla
hi ksh: chage: not found in AIX
# 6  
Old 02-08-2012
Try --
lsuser -f <user-nm>
# 7  
Old 02-08-2012
Quote:
Originally Posted by bocha
hi ksh: chage: not found in AIX

chuser maxage=0 username ???

passwd -S username ???
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

"Permission denied" when trying to SSH my iPhone though password is correct

Hi, I hope this is the correct section in the forum to post as I'm trying to SSH from my MacBook. I was looking to see whether ssh on my jailbroken iPhone 6s (10.3.1) still works fine and was following this old reddit guide. I installed OpenSSH&OpenSSL from Cydia and changed the password using... (7 Replies)
Discussion started by: hss1
7 Replies

2. Shell Programming and Scripting

Encrypt password but use * when typing password

Hi, I came across the following script for encrypting the password in this forum #! /usr/bin/ksh exec 4>/dev/tty function getpass { typeset prompt=$1 typeset backspace=$(echo \\b\\c) typeset enter=$(echo \\r\\c) typeset savesetting=$(stty -g) ... (9 Replies)
Discussion started by: dbashyam
9 Replies

3. AIX

Users kicked out after changing their password in an ssh session

Hi I have experienced this for years and just put up with it. However a client of mine now wants to stop this happening to their users. I have scoured the internet but can find no reference to the problem. I tried switching to PAM authentication thinking this might help but it made no... (6 Replies)
Discussion started by: johnf
6 Replies

4. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

5. UNIX for Advanced & Expert Users

SSH closes connection when using arrow keys

Hi, I'm having a problem with my ssh link to various Sun servers running Solaris 9 and 10 from an Windows XP box running Cygwin/X. I am using ssh to connect to a number of different Sun servers. My problem is that when editing a remote shell command line with the arrow direction keys the... (0 Replies)
Discussion started by: stv_t
0 Replies

6. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

7. Shell Programming and Scripting

cronjob on a remote ssh without typing password

Hi there, How can I send a script to a remote ssh client. 1) I cannot connect through ftp 2) I just need to read a file on a remote server. Here is what I do: ~$ ssh santiago@myserver.com santiago@myserver.com's password: santiago@myserver:~$ cat logfile hello world bonjour le monde hola... (1 Reply)
Discussion started by: chebarbudo
1 Replies

8. Shell Programming and Scripting

automating ssh session with password

Hi Can anyone help me in automate a ssh session with password using shell script (7 Replies)
Discussion started by: raghav288
7 Replies

9. Programming

hide password typing

I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal? I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Discussion started by: ivancheung
2 Replies

10. Programming

multiuser chat server closes when one client closes. code included

I have been trying to write a very basic chat program but at the moment I am having problems getting it to be multiuser as it closes all connections when one client shutsdown. I have also been having problems trying to get the program to display a list of usernames to the clients. I have tried... (0 Replies)
Discussion started by: dooker
0 Replies
Login or Register to Ask a Question