- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scp error.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-01-2009 12:33 AM
тАО07-01-2009 12:33 AM
"Connection has been unexpectedly closed. Server sent command exit status 1."
can i know what is the error?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 12:45 AM
тАО07-01-2009 12:45 AM
Re: scp error.
You would need to check the logs on the server you are tying to connect to.
Possibilities:
1) Secure shell sshd daemon may need to restart.
2) Permissions or ownership problem on the .ssh directory or the files within or the user not owning its own home directory.
See the log file /var/adm/syslog/syslog.log
/sbin/init.d/secsh stop
/sbin/inig.d/secsh start
# This is a restart of the secure sell daemon
ll -d /home/username/.ssh
ll -d /home/username
ll /home/username/
The actual path to the user home directory may not be /home but its a good example.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 01:08 AM
тАО07-01-2009 01:08 AM
Re: scp error.
Connecting to 20.20.50.110
Password:
Request for subsystem 'sftp' failed on channel 0
Connection closed
i tried with sftp its also throwing errror..
sorry i cant stop the ssh service . many users are using ssh logins.
what is the next step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 01:14 AM
тАО07-01-2009 01:14 AM
SolutionA quick restart will not disrupt your user base.
/sbin/init.d/secsh stop
/sbin/inig.d/secsh start
# This is a restart of the secure sell daemon
# This section can be checked with users on the system.
ll -d /home/username/.ssh
ll -d /home/username
ll /home/username/
/var/adm/syslog/syslog.log can be checked while users are on the system.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 01:26 AM
тАО07-01-2009 01:26 AM
Re: scp error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 01:47 AM
тАО07-01-2009 01:47 AM
Re: scp error.
It is possible the sessions will hang up.
I can not provide a guarantee.
I just logged on a Linux system using ssh, as root, and restarted the sshd daemon (/sbin/init.d/secsh on HP-UX.
I was not disconnected.
A quick restart usually does not disrupt user sessions. Again no guarantee.
I think though that since there are lots of happy users a restart of the daemon is not called for.
Investigating the log and permissions is a much better idea.
tail -f /var/adm/syslog/syslog.log
Then try a login with your user.
You might get enough diagnostics to isolate and solve the problem. Or post the results here.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 01:51 AM
тАО07-01-2009 01:51 AM