[prev in list] [next in list] [prev in thread] [next in thread] 

List:       secure-shell
Subject:    scp2 and ssh1 compatibility
From:       Mark Rafn <dagon () halcyon ! com>
Date:       1998-11-30 20:29:11
[Download RAW message or body]

I connect to some SSH1 and some SSH2 servers from my Linux machine.  I
have 1.2.6 and 2.0.11 installed, and the compatibility settings are in the
V2 config files so that ssh2 will fallback to ssh1 when connecting to an
ssh1 server.  Fallback to v1 for interactive sessions (ssh machinename)
works fine.

However, scp2 isn't falling back correctly - I get
  Executing /usr/local/bin/ssh1 for ssh1 compatibility.
  command-line line 0: Bad configuration option.
  Connection lost.
when I run 'scp machine.name:file .'.  scp is symlinked to scp2, of
course.  'scp -1 machine.name:file .' works correctly, and prints a
slightly different warning:
  warning: Executing scp1 compatibility.

Is this a bug in 2.0.11 or am I doing something wrong?  Any thoughts
appreciated.

For excessive documentation, here are the results of scp -v and scp -1 -v,
with machine name obscured:

[markr2 mark]$ scp2 -v xxxxxxx.xxxx.com:carlotta.build02 .  
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: hostname is 'xxxxxxx.xxxx.com'.
debug: Unable to open /home/dagon/.ssh2/ssh2_config
Development-time debugging not compiled in.
To enable, configure with --enable-debug and recompile.
debug: connecting to xxxxxxx.xxxx.com...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: ssh_client_wrap: creating userauth protocol
debug: Remote version: SSH-1.5-1.2.26
Executing /usr/local/bin/ssh1 for ssh1 compatibility.
SSH Version 1.2.26 [i586-unknown-linux], protocol version 1.5.
Standard version.  Does not use RSAREF.
command-line line 0: Bad configuration option.
debug: ssh_sigchld_real_callback
debug: ssh_sigchld_process_pid: calling handler pid 2795 code 255
debug: ssh_pipe_sigchld_handler: pid 2795 status 255
debug: ssh_pipe_sigchld_do_callback
debug: ssh_pipe_stream_read: faking eof after sigchld
Connection lost.


[markr2 mark]$ scp2 -1 -v xxxxxxx.xxxx.com:carlotta.build02 .
warning: Executing scp1 compatibility.
Executing: host xxxxxxx.xxxx.com, user (unspecified), command scp -v -f
carlotta.build02
SSH Version 1.2.26 [i586-unknown-linux], protocol version 1.5.
Standard version.  Does not use RSAREF.
markr2.internal.sierra.com: Reading configuration data /etc/ssh_config
markr2.internal.sierra.com: ssh_connect: getuid 500 geteuid 0 anon 0
markr2.internal.sierra.com: Connecting to xxxxxxx.xxxx.com
[xxx.xxx.xxx.xxx] port 22.
markr2.internal.sierra.com: Allocated local port 1023.
markr2.internal.sierra.com: Connection established.
... etc. and it transfers the file

--
Mark Rafn    dagon@halcyon.com    <http://www.halcyon.com/dagon/>   !G
Spaf's corollary: nothing says the other 10% isn't crap, too.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic