Operating System - HP-UX
1832087 Members
2781 Online
110037 Solutions
New Discussion

SFTP don't works,but SSH yes.

 
Francescov79
New Member

SFTP don't works,but SSH yes.

Dear Firends my names is francesco i write from Italy,sorry for my spaghetti English :)
I have a old Workstation Graphic HP Visualize C 3000.

I have installed the HP-UX B.11.11,but when i download this version of secure shell iT1471AA_A.04.70.009_HP-UX_B.11.11_32_64.depot, i install correctly, de ssh2 login work correctly, but the sftp don't work i have view another thread,but the problem don't resolve.

First i have try to connect with a filezilla this print this message:

Stato: Connessione a 192.168.1.103:22 in corso...
Risposta: fzSftp started
Comando: open "root@192.168.1.103" 22
Comando: Pass: **********
Errore: Server unexpectedly closed network connection.

Second i try to connect in local sftp from secure crt, but another error message.

Value of TERM has been set to "vt100".
WARNING: YOU ARE SUPERUSER !!

# sftp root@192.168.1.103
Connecting to 192.168.1.103...
The authenticity of host '192.168.1.103 (192.168.1.103)' can't be established.
RSA key fingerprint is 09:1b:28:4d:3c:91:ab:24:a6:25:37:26:e9:02:86:cd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.103' (RSA) to the list of known hosts.
Password:
Connection to 192.168.1.103 closed by remote host.
Connection closed

third i try to login with another user
but the result is equal.

in attachment my sshd_config_file.

Please help me
see you have a good time.
3 REPLIES 3
VK2COT
Honored Contributor

Re: SFTP don't works,but SSH yes.

Ciao caro amico,

Several things that might help in
checking the problem:

a) Enable debug mode on the server:

# /opt/ssh/sbin/sshd -ddd -e 1>/tmp/sshd.debug 2>&1 &

b) Interpret the debug messages:

http://docs.hp.com/en/5991-7493/ch07s04.html

c) Check /var/adm/syslog/syslog.log:

# grep -i -e ssh -e pam /var/adm/syslog/syslog.log

d) Redirect sshd debug messages to a file.
In /etc/syslog.conf add:

local7.debug /var/adm/syslog/sshd.log
*.info;mail.none;local7.none /var/adm/syslog/syslog.log

and restart syslogd.

NOTE: Use TABs between facilities and
log file names!

Modify the two following variables in
sshd_config:

SyslogFacility LOCAL7
LogLevel DEBUG3

and restart sshd.

e) Use tusc(1).

For the client:

# tusc -Eeaf -p -v -rall -wall -vall -T '' -o /tmp/ssh_tusc.txt ssh -vvv myhost

For the server, start the sshd daemon in
debug mode:

# /usr/sbin/sshd -ddd -e &
# ps -ef|grep sshd
# tusc -Eeaf -p -v -rall -wall -vall -T '' -o /tmp/sshd_tusc.txt

f) Do you use TCP wrappers (/etc/hosts.allow
and /etc/hosts.deny)?

g) Do you run SSH via /etc/inetd.conf
and possibly /var/adm.inetd.sec?

Cheers,

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: SFTP don't works,but SSH yes.

Ahh,

forgot one more thing:

h) Does /opt/ssh/libexec/sftp-server exist
and what are its ownership and permissions?

# ll /opt/ssh/libexec/sftp-server

VK2COT
VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: SFTP don't works,but SSH yes.

And one more idea:

i) sftp and/or cp may fail at connection time
if you have shell initialization (.profile,
.bashrc, .cshrc, and so on) which produces
output for non-interactive sessions. This
output confuses the sftp/scp client. You can
verify if your shell is doing this by
executing:

# ssh root@192.168.1.103 /usr/bin/true

If the above command produces any output, then
you need to modify your shell initialization.
VK2COT - Dusan Baljevic