Hallo,
First of all please let me explain my situation. I have a web site at which I need to upload (automatically) a large number of small files. I have created a set of php/bash scripts in order to to that. Since I want to automatically upload the files I opted to use scp.
My configuration:
1 Suse Linux 8.2 Desktop PC behind the firewall (named:desktop)
1 Suse Linux 8.2 Server WITHOUT X subsystem (named:server)
DSL connection
From the desktop:
I can login to my web server via ssh account@
www.webserver.com
I can sftp to the web server with account@
www.webserver.com
I CANNOT use scp because the remote shell is echoing a message from the ISP.
From the firewall/server
I can login to my web server via ssh ONLY when I log to the server as root(!) (ssh account@
www.webserver.com)
I CANNOT sftp to the server from any account
I CANNOT scp to the server for the same reason as sftp
When I try to use scp/sftp I receive either of the following messages:
Message B:
Code:
Error: Can't open display: desktop:0.0
9984: Host key verification failed.
9983: Couldn't read packet: Connection reset by peer
Message A:
Code:
Xlib: connection to "peter:0.0" refused by server
Xlib: No protocol specified
Error: Can't open display: desktop:0.0
10459: Host key verification failed.
I tried to figure out what the problem was, using ssh -vvv. It seems that the problem is on those lines:
Code:
10793: debug3: check_host_in_hostfile: filename /home/tpe.ssh/known_hosts
10793: debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
10793: debug3: check_host_in_hostfile: filename /home/tpe/.ssh/known_hosts
10793: debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
10793: debug3: check_host_in_hostfile: filename /home/tpe/.ssh/known_hosts
10793: debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
10793: debug2: no key of type 0 for host www.webserver.com
10793: debug3: check_host_in_hostfile: filename /home/tpe/.ssh/known_hosts2
10793: debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2
10793: debug3: check_host_in_hostfile: filename /home/tpe/.ssh/known_hosts
10793: debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
10793: debug2: no key of type 2 for host www.webserver.com
Please note that
a) I receive the Xlib message when I use ssh to connect from my dekstop to server adn from there to my web server not when I login directcly to the firewall.
b) I have not installed X subsystem on the server.
c) This is not a firewall problem (remember I can use ssh this root account. Additionaly, even with stoped firewall normal users cannot ssh to the web server.)
I would appreciate any help on this problem (and mostly why I can ssh with root account and I cannot ssh .
Thank you in advance and I my apologies for the length of this message.