LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2014, 03:57 PM   #1
babyPen
LQ Newbie
 
Registered: May 2014
Posts: 17

Rep: Reputation: Disabled
sftp with inactive id


Hello Guru's

I have run into a issue and wanted to get some inputs on it. I am not a linux expert but fair enough to keep myself afloat.

This is regarding SFTP command.

I have 2 servers who can communicate in SFTP fashion with out password prompt as i have the keys exchanged.

Server A and Server B.
Today all of sudden the connection was not establishing and all that i kept getting was:
Error: Could not open connection to `username@serverb': Could not open connection to `serverB': Connection lost
23/06/2014 12:32:28:529 SftpSftpG3/sftpg3.c:641/sftp_exit: Exit code: 5

Tried a lot of stuff like sftp -v and -vvv and every time kept getting the above error.
some google explained what exit code 5 was
as https://www.eldos.com/documentation/...rrorcodes.html

but the actual problem was that the ID I was using to sftp had the password expired on it.

my Question and confusion: if the password was expired why did the verbose output not make any reference to the expiry of the password or indicated something that would tell me that the issue was with password.

What is the expected behavior of sftp with an inactive account ?

Note: Since the password was expired the ID being used to SFTP was marked as inactive and hence was having the connectivity issue.

Any inputs on this topic is highly appreciated.
 
Old 06-24-2014, 07:11 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
if the password was expired why did the verbose output not make any reference to the expiry of the password or indicated something that would tell me that the issue was with password.
Server A doesn't know why it can't de-crypt the response from server B, it just it knows it can't de-crypt it. The list of possible reasons for the failure is significant.
A is using wrong cipher
B is using wrong cipher
Bs' private key has been changed and A was not updated
The reverse
Connectivity issues between A and B

any of which can result in...
Quote:
SSH_ERROR_BAD_MESSAGE 5 (0x0005) A badly formatted packet or protocol incompatibility is detected
 
1 members found this post helpful.
  


Reply

Tags
sftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP logging for Chroot on CentOS 6.2 with openssh-5.3 not working (internal-sftp) RatherBFishin Linux - Server 1 08-30-2012 07:45 PM
Unable to SFTP with a user made for only to perform SFTP raj2arora2009 Linux - Security 1 04-10-2012 08:23 AM
LXer: Restricting Users To SFTP Plus Setting Up Chrooted SSH/SFTP (Debian Squeeze) LXer Syndicated Linux News 0 09-06-2011 08:10 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 10:14 PM


All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration