HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp connection closed
Operating System - HP-UX
1832617
Members
2969
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2010 03:24 AM
12-12-2010 03:24 AM
sftp connection closed
Hi,
One server is currently configured to get files through sftp. The same user is created on the second server, and authorized keys file is copied from the working server, to the new server.
The connection from the remote host is sucessfull, but we get the following error:-
debug1: Exit status 1
Connection closed
One server is currently configured to get files through sftp. The same user is created on the second server, and authorized keys file is copied from the working server, to the new server.
The connection from the remote host is sucessfull, but we get the following error:-
debug1: Exit status 1
Connection closed
Set goals, and work to achieve them
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2010 04:48 AM
12-12-2010 04:48 AM
Re: sftp connection closed
please clarify by sending the output of
sftp -v user@host
sftp -v user@host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2010 10:49 PM
12-12-2010 10:49 PM
Re: sftp connection closed
The host key of the new server might be unknown to the client. If you're running sftp in batch mode, it cannot present its "the host key is unknown... should we trust it?" question, so the connection will fail even before the authentication step.
The fix is to establish the connection to the new server manually, and accept the host key of the new server. Now the client side will remember the host key and subsequent connection attempts can be done in batch mode.
If that does not solve the problem, then check the syslog of the new server: if the SSH server side has a problem, a clear error message will usually be found there.
If the user has been configured with an invalid shell, it might cause the failure in starting up the sftp-server subsystem for the user.
The debugging message you showed is not very helpful unless we can know exactly what was the last successful step before it.
MK
The fix is to establish the connection to the new server manually, and accept the host key of the new server. Now the client side will remember the host key and subsequent connection attempts can be done in batch mode.
If that does not solve the problem, then check the syslog of the new server: if the SSH server side has a problem, a clear error message will usually be found there.
If the user has been configured with an invalid shell, it might cause the failure in starting up the sftp-server subsystem for the user.
The debugging message you showed is not very helpful unless we can know exactly what was the last successful step before it.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP