- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't sftp but can ssh in ok
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
Forums
Discussions
Discussions
Discussions
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
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
03-31-2003 08:49 AM
03-31-2003 08:49 AM
Can't sftp but can ssh in ok
zlib 1.1.4
perl 5.8.0
prngd 0.9.27
openssl 0.9.7a
openssh 3.5p1
using --with-pam, disabling privilege separation (because it didn't work with tcb) and gotten ssh to work for both root and normal user accounts...but sftp only works for root. I previously had no /etc/shells file, but I went ahead and added one just in case. ftp worked fine for both types of users. Is there another privilege sep setting that applies to scp/sftp?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 08:50 AM
03-31-2003 08:50 AM
Re: Can't sftp but can ssh in ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 08:59 AM
03-31-2003 08:59 AM
Re: Can't sftp but can ssh in ok
Have you exchanged public keys? Doc attached.
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
03-31-2003 09:01 AM
03-31-2003 09:01 AM
Re: Can't sftp but can ssh in ok
I tested the following:
test:/root=> /opt/openssh2/bin/slogin ctopliss@itopsd0
(worked OK)
If this works OK, then try:
test:/root=> /opt/openssh2/bin/sftp ctopliss@itopsd0
For me it worked fine - I was able to both slogin and sftp.
Is there nothing in the syslog to give you a clue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 09:24 AM
03-31-2003 09:24 AM
Re: Can't sftp but can ssh in ok
I managed to get around this by installing a program called 'scponly' which works with this.
If there are no limitations on the user; the best I can offer is to use sshd in debugging mode. Kill the daemon, then run 'sshd -d -D'. Be warned; you get a lot of rubbish; but it will hold the pertinent information.
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 10:11 AM
03-31-2003 10:11 AM
Re: Can't sftp but can ssh in ok
No failures are indicated in syslog
I didn't exchange keys because I'm using simple tunneled password for the time being... everything else is way too complex for the moment. I'm simply replacing telnet and ftp. I am using the keys generated via make install.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 10:18 AM
03-31-2003 10:18 AM
Re: Can't sftp but can ssh in ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 10:50 AM
03-31-2003 10:50 AM
Re: Can't sftp but can ssh in ok
>subsystem request for sftp
>debug1: subsystem: exec() /opt/openssh/libexec/sftp-server
Here.
>debug1: PAM establishing creds
>debug1: fd 15 setting O_NONBLOCK
>debug1: fd 14 setting O_NONBLOCK
>debug1: Received SIGCHLD.
This is interesting - a SIGCHLD is used to signify to the parent that its children are having problems!
>debug1: channel 0: read<=0 rfd 15 len 0
>debug1: channel 0: read failed
Looks like the tunnel to the parent died here
[snip]
What the above seems to be saying is that it's spawing the sftp-server service and that seems to be immediately dying, thus causing ssh to kick you out...
What are the permissions like on that file/directory/parent directory? Is sshd being run as root?
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 05:36 AM
04-01-2003 05:36 AM
Re: Can't sftp but can ssh in ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 08:22 AM
04-09-2003 08:22 AM