Operating System - HP-UX
1821802 Members
3423 Online
109637 Solutions
New Discussion юеВ

scp to a login (bash) breaks with "lost connection", bash core dumps

 
Franz P
Advisor

scp to a login (bash) breaks with "lost connection", bash core dumps

I can ssh login to an account, which has a bash as a login shell, but I cannot scp to that account; scp breaks with "lost connection", bash core dumps to homedir...

I have other machines, which work fine; if I change login shell to /usr/bin/sh everything works.

Secure_Shell A.04.30.007 HP-UX Secure Shell
bash 3.2 bash
gettext 0.15 gettext
libgcc 4.1.1 libgcc
libiconv 1.11 libiconv

See attached shell output for more details.

Any ideas?
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: scp to a login (bash) breaks with "lost connection", bash core dumps

Have you tried to get a stack trace from your core file?
$ file core
$ gdb executable core
(gdb) bt
(gdb) q
Franz P
Advisor

Re: scp to a login (bash) breaks with "lost connection", bash core dumps

unfortunately we haven't installed a debugger yet; this is our new environment, just delivered by hp and fresh installed and patched from Ignite server...

Guess I need to change a few options or open a call at service center!
NMCI Group
Advisor

Re: scp to a login (bash) breaks with "lost connection", bash core dumps

Did you ever get this problem figured out? I'm having the exact same problem except I don't get a core. scp just says "lost connection" and dumps me out. sftp won't work either but ssh works fine. Very strange.
Sajeev_1
Advisor

Re: scp to a login (bash) breaks with "lost connection", bash core dumps

please make sure you have "subsystem-sftp sftp-server2" is un-commented in /etc/ssh2/sshd2_config

Thanks
Sajeev
NMCI Group
Advisor

Re: scp to a login (bash) breaks with "lost connection", bash core dumps

sftp works fine unless your shell is bash. I have the appropriate lines in sshd_config for sftp. I am using HPUX Secure Shell so the format of that line and the location of the sshd_config is slightly different than what you suggested. Thanks for helping though.