scp Fails for root with the below message:
"Executing ssh1 in compatibility mode failed (Check that scp1-compat-srv/scp is in your PATH). lost connection"
command used: "scp filename dest_server:/dest_dir"
SCP with non-root id works fine. ssh works fine for both, root n non-root id.
RSA keys are generated and shared for password-less login and filetransfer.
Could you please let me know how to fix this.
Server: scp -V scp: SSH Tectia Client 6.0.12 on sparc-sun-solaris2.8
Client: Sun_SSH_1.1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090700f
asked Sep 15 '10 at 14:02
Found the issue. The public key generated had the below line. Removed the same and tried scp,ssh both works fine.
answered Sep 15 '10 at 22:49
Is there a ssh user config for root (probably under $HOME/.ssh/config) ? In case there is, does it work if you move it so that the default config is used?
Based on what you describe it looks as if it's trying to connect to Tectia Server using the SSH1 protocol, which is not supported by Tectia Server (only supports the SSH2 protocol since SSH1 is unsafe).
But it's strange that scp would work for other users and not for root, unless there was a specific user config for root which differs from the global one.
answered Sep 15 '10 at 14:34