* scp problems between Solaris and Tru64
@ 2003-05-17 2:04 Dr. David Kirkby
2003-05-17 5:11 ` Dave Uhring
[not found] ` <Ncuxa.1651$MW.148431@localhost>
0 siblings, 2 replies; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-17 2:04 UTC (permalink / raw)
I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
Alpha.
Attempting to connect to the Dec Alpha (dobermann) from the Sun
(sparrow) using secure shell (ssh) works fine, using
public-key/private-key. Attempting to transfer a file via sftp works
fine too. But if I try to copy a file to the Dec Alpha using scp, it
fails to work. It seems odd that ssh and sftp work, but not scp.
sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
Executing: program /usr/bin/ssh host dobermann, user davek, command
scp -v -t /tmp
scp: warning: Executing scp1 compatibility.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
scp1 is in your PATH).
lost connection
(in each case, the secure xxx files are all Sun originals in /usr/bin.
)
Firstly, I don't understand why a connection attempt is being made
using scp1. The Dec Alpha's server is not configured to accept ssh1
type connections (or at least that's my belief), as the lines for ssh1
compatibility are commented out.
# this is part of /etc/ssh2/sshd_config on the Dec Alpha dobermann.
## SSH1 compatibility
# Ssh1Compatibility <set by configure by default>
# Sshd1Path <set by configure by default>
so I can only assume ssh and sftp are using the xxx2 protocol, not the
xxx1 protocol.
But secondly, the Sun does not have an scp1 file, only ssh, scp and
sftp, but no ssh1, scp1, sftp1, ssh2, scp2 or sftp2. So quite why the
Sun wants scp1 in the path I don't know.
Thirdly, the Sun does not have a -t option to scp, so I'm not sure why
the debugging option (-d) says its using the -t option.
Any suggestions??
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 2:04 scp problems between Solaris and Tru64 Dr. David Kirkby
@ 2003-05-17 5:11 ` Dave Uhring
2003-05-17 9:45 ` Dr. David Kirkby
[not found] ` <Ncuxa.1651$MW.148431@localhost>
1 sibling, 1 reply; 19+ messages in thread
From: Dave Uhring @ 2003-05-17 5:11 UTC (permalink / raw)
On Sat, 17 May 2003 03:04:41 +0100, Dr. David Kirkby wrote:
> I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
> UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
> Alpha.
> Any suggestions??
Dump the SSH2 on the Alpha and install OpenSSH.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 5:11 ` Dave Uhring
@ 2003-05-17 9:45 ` Dr. David Kirkby
2003-05-17 14:39 ` Dave Uhring
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-17 9:45 UTC (permalink / raw)
Dave Uhring wrote:
>
> On Sat, 17 May 2003 03:04:41 +0100, Dr. David Kirkby wrote:
>
> > I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
> > UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
> > Alpha.
>
> > Any suggestions??
>
> Dump the SSH2 on the Alpha and install OpenSSH.
I'd prefer to avoid that if possible, although given all my other
systems use OpenSSH, perhaps it's not such a bad idea. However, if it
can be resolved more easily, I'd like to.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 9:45 ` Dr. David Kirkby
@ 2003-05-17 14:39 ` Dave Uhring
2003-05-17 16:31 ` Michael Heiming
2003-05-17 18:39 ` Dr. David Kirkby
2 siblings, 0 replies; 19+ messages in thread
From: Dave Uhring @ 2003-05-17 14:39 UTC (permalink / raw)
On Sat, 17 May 2003 10:45:30 +0100, Dr. David Kirkby wrote:
> Dave Uhring wrote:
>>
>> On Sat, 17 May 2003 03:04:41 +0100, Dr. David Kirkby wrote:
>>
>> > I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
>> > UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
>> > Alpha.
>>
>> > Any suggestions??
>>
>> Dump the SSH2 on the Alpha and install OpenSSH.
>
> I'd prefer to avoid that if possible, although given all my other
> systems use OpenSSH, perhaps it's not such a bad idea. However, if it
> can be resolved more easily, I'd like to.
Interoperability between Ylonen's SSH2 and OpenSSH is problematic at best.
You have done well getting as much of it as you have.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 9:45 ` Dr. David Kirkby
2003-05-17 14:39 ` Dave Uhring
@ 2003-05-17 16:31 ` Michael Heiming
2003-05-17 18:39 ` Dr. David Kirkby
2 siblings, 0 replies; 19+ messages in thread
From: Michael Heiming @ 2003-05-17 16:31 UTC (permalink / raw)
In comp.unix.tru64 Dr. David Kirkby <drkirkby@ntlworld.com> wrote:
> Dave Uhring wrote:
>>
>>
>> Dump the SSH2 on the Alpha and install OpenSSH.
> I'd prefer to avoid that if possible, although given all my other
> systems use OpenSSH, perhaps it's not such a bad idea. However, if it
> can be resolved more easily, I'd like to.
You should have openssh, compiled and running in a few minutes on
an Alpha, it's a good idea to run openssh on all systems, to avoid
any problems, works great on Tru64.
Good luck
--
Michael Heiming
Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 9:45 ` Dr. David Kirkby
2003-05-17 14:39 ` Dave Uhring
2003-05-17 16:31 ` Michael Heiming
@ 2003-05-17 18:39 ` Dr. David Kirkby
2003-05-17 19:18 ` Dave Uhring
2 siblings, 1 reply; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-17 18:39 UTC (permalink / raw)
"Dr. David Kirkby" wrote:
>
> Dave Uhring wrote:
> >
> > On Sat, 17 May 2003 03:04:41 +0100, Dr. David Kirkby wrote:
> >
> > > I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
> > > UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
> > > Alpha.
> >
> > > Any suggestions??
> >
> > Dump the SSH2 on the Alpha and install OpenSSH.
Okay, this seems VERY VERY odd. As suggested, I installed OpenSSH
version 3.6p1 on the Dec Alpha - the same as on all my machines,
(except the Sun Ultra 80, which has Sun's version based on OpenSSH).
I've set up empty passphrases (this is home network, and this system
is behind a firewall). I can ssh or sftp, but still I am unable to
use scp. But scp works fine to other systems.
Here I copy a file from the Sun Ultra 80 (sparrow) running Solaris 9
to a Sun SPARCstation 20 (woodpecker) running Solaris 2.5 and OpenSSH
3.6p1.
sparrow /export/home/davek % scp foo davek@woodpecker:/tmp
foo 100%
|*************************************************************************|
27636 00:00
(it works to machines running Redhat, Debian, NetBSD too, but the
Solaris 2.5 machine is the only one I have online now).
Now I try it to the Dec Alpha, running OpenSSH 3.6p1
sparrow /export/home/davek % scp foo davek@dobermann:/tmp
scp: warning: Executing scp1 compatibility.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
scp1 is in your PATH).
lost connection
But the Dec Alpha (dobermann) is running OpenSSH. I can ssh to it okay
and check that.
sparrow /export/home/davek % ssh dobermann
Last login: Sat May 17 18:56:42 BST 2003 from sparrow
Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri May 2 21:42:35 BST 2003
$ ps -elf | grep sshd\x7f\x7f
8001 I 0 628 1 0.0 44 0 296K event
18:47:55 0:00.08 /usr/local/sbin/sshd
8001 S 0 1062 628 0.0 44 0 552K event
19:08:57 0:00.05 /usr/local/sbin/sshd
80808001 S + 1766 1065 1064 0.2 44 0 232K 3cbe7ddc
19:09:25 0:00.01 grep sshd
Note, the sshd running is running from /usr/local/sbin, as I can see
if try to run again, but NOT as root. It prints its version
(OpenSSH_3.6p1) but fails to load the hostkeys, which is to be
expected as I'm not root.
$ /usr/local/sbin/sshd -d
debug1: sshd version OpenSSH_3.6p1
Could not load host key: /usr/local/etc/ssh_host_key
Could not load host key: /usr/local/etc/ssh_host_rsa_key
Could not load host key: /usr/local/etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
So why the hell is going on? Any other suggestions?
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 18:39 ` Dr. David Kirkby
@ 2003-05-17 19:18 ` Dave Uhring
2003-05-17 22:48 ` Dr. David Kirkby
0 siblings, 1 reply; 19+ messages in thread
From: Dave Uhring @ 2003-05-17 19:18 UTC (permalink / raw)
On Sat, 17 May 2003 19:39:41 +0100, Dr. David Kirkby wrote:
> Okay, this seems VERY VERY odd. As suggested, I installed OpenSSH
> version 3.6p1 on the Dec Alpha - the same as on all my machines,
> (except the Sun Ultra 80, which has Sun's version based on OpenSSH).
>
> I've set up empty passphrases (this is home network, and this system
> is behind a firewall). I can ssh or sftp, but still I am unable to
> use scp. But scp works fine to other systems.
>
> Here I copy a file from the Sun Ultra 80 (sparrow) running Solaris 9
> to a Sun SPARCstation 20 (woodpecker) running Solaris 2.5 and OpenSSH
> 3.6p1.
>
> sparrow /export/home/davek % scp foo davek@woodpecker:/tmp
> foo 100%
> |*************************************************************************|
> 27636 00:00
>
> (it works to machines running Redhat, Debian, NetBSD too, but the
> Solaris 2.5 machine is the only one I have online now).
>
> Now I try it to the Dec Alpha, running OpenSSH 3.6p1
>
> sparrow /export/home/davek % scp foo davek@dobermann:/tmp
> scp: warning: Executing scp1 compatibility.
> scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> scp1 is in your PATH).
> lost connection
There is no scp1 in OpenSSH, nor is ther ssh1.
>
> But the Dec Alpha (dobermann) is running OpenSSH. I can ssh to it okay
> and check that.
>
> sparrow /export/home/davek % ssh dobermann
> Last login: Sat May 17 18:56:42 BST 2003 from sparrow
> Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri May 2 21:42:35 BST 2003
>
> $ ps -elf | grep sshd\x7f\x7f
> 8001 I 0 628 1 0.0 44 0 296K event
> 18:47:55 0:00.08 /usr/local/sbin/sshd
> 8001 S 0 1062 628 0.0 44 0 552K event
> 19:08:57 0:00.05 /usr/local/sbin/sshd
> 80808001 S + 1766 1065 1064 0.2 44 0 232K 3cbe7ddc
> 19:09:25 0:00.01 grep sshd
>
> Note, the sshd running is running from /usr/local/sbin, as I can see
> if try to run again, but NOT as root. It prints its version
> (OpenSSH_3.6p1) but fails to load the hostkeys, which is to be
> expected as I'm not root.
Remove Ylonen's SSH from the system. Your error messages are inconsistent
with OpenSSH, probably because Ylonen SSH is ahead of OpenSSH in your
PATH.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 19:18 ` Dave Uhring
@ 2003-05-17 22:48 ` Dr. David Kirkby
2003-05-18 1:24 ` Ann Majeske
2003-05-18 1:24 ` Dave Uhring
0 siblings, 2 replies; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-17 22:48 UTC (permalink / raw)
Dave Uhring wrote:
>
> On Sat, 17 May 2003 19:39:41 +0100, Dr. David Kirkby wrote:
>
> > Okay, this seems VERY VERY odd. As suggested, I installed OpenSSH
> > version 3.6p1 on the Dec Alpha - the same as on all my machines,
> > (except the Sun Ultra 80, which has Sun's version based on OpenSSH).
> >
> > I've set up empty passphrases (this is home network, and this system
> > is behind a firewall). I can ssh or sftp, but still I am unable to
> > use scp. But scp works fine to other systems.
> >
> > Here I copy a file from the Sun Ultra 80 (sparrow) running Solaris 9
> > to a Sun SPARCstation 20 (woodpecker) running Solaris 2.5 and OpenSSH
> > 3.6p1.
> >
> > sparrow /export/home/davek % scp foo davek@woodpecker:/tmp
> > foo 100%
> > |*************************************************************************|
> > 27636 00:00
> >
> > (it works to machines running Redhat, Debian, NetBSD too, but the
> > Solaris 2.5 machine is the only one I have online now).
> >
> > Now I try it to the Dec Alpha, running OpenSSH 3.6p1
> >
> > sparrow /export/home/davek % scp foo davek@dobermann:/tmp
> > scp: warning: Executing scp1 compatibility.
> > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> > scp1 is in your PATH).
> > lost connection
>
> There is no scp1 in OpenSSH, nor is ther ssh1.
> Remove Ylonen's SSH from the system. Your error messages are inconsistent
> with OpenSSH, probably because Ylonen SSH is ahead of OpenSSH in your
> PATH.
Thanks for your help - I now have it resolved.
Did you mean to remove scp from the Alpha, or the Sun ??
I'm a bit worried about removing the ssh software subset on the Dec
Alpha. I've not owned the Dec long, so are not too hot on Tru64 UNIX
administration. However, if I list the software subsets on the Alpha,
it implies ssh is required. Quite why that would be I don't know, but
it does rather suggest it might break the system if removed.
# setld -i | grep Required
OSFBASE540 installed Base System (- Required -)
OSFHWBASE540 installed Base System - Hardware
Support (- Required -)
OSFOEMBASE540 installed Tru64 UNIX Base System (-
Required -)
OSFSSHBASE540 installed Secure Shell Base
Components (- Required -)
There are 117 software subsets installed, but 4 (one of which is the
ssh) is listed as 'Required'. Hence my reluctance to remove it.
However, I renamed /usr/bin/scp to /usr/bin/scp.orig on the Alpha and
it now works okay!!! So as you thought, scp1 was being found on the
Alpha since it was before OpenSSH scp in my path.
Cheers. I'll leave the rest of the ssh configuration on the Alpha, for
fear of breaking the system.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 22:48 ` Dr. David Kirkby
@ 2003-05-18 1:24 ` Ann Majeske
2003-05-18 2:22 ` Nico Kadel-Garcia
2003-05-18 1:24 ` Dave Uhring
1 sibling, 1 reply; 19+ messages in thread
From: Ann Majeske @ 2003-05-18 1:24 UTC (permalink / raw)
Here's the response I sent to Dr Kirkby's query to the
tru64-unix-managers list:
The version of ssh supplied with Tru64 UNIX does not
implement the ssh version 1 protocol. So, it must have been
your SUN system requesting sshv1 for some reason.
You shouldn't try to remove the Tru64 version of
ssh from your V5.1B system. It has been tied into the
OS and is required for clusters.
If you really need ssh v1 support, the recommended
way is to install Openssh in addition to the Tru64
version of ssh, and then configure the Tru64 version
of ssh to call Openssh if it gets a v1 request.
To do this you add the following options to the
sshd2_config file:
Ssh1Compatibility yes
Sshd1Path /usr/local/sbin/sshd
Sshd1ConfigFile /usr/local/etc/ssh/sshd_config
and restart the Tru64 ssh daemon.
Ann Majeske
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-17 22:48 ` Dr. David Kirkby
2003-05-18 1:24 ` Ann Majeske
@ 2003-05-18 1:24 ` Dave Uhring
1 sibling, 0 replies; 19+ messages in thread
From: Dave Uhring @ 2003-05-18 1:24 UTC (permalink / raw)
On Sat, 17 May 2003 23:48:56 +0100, Dr. David Kirkby wrote:
> Did you mean to remove scp from the Alpha, or the Sun ??
The Alpha; that's where the problem was.
> I'm a bit worried about removing the ssh software subset on the Dec
> Alpha. I've not owned the Dec long, so are not too hot on Tru64 UNIX
> administration. However, if I list the software subsets on the Alpha,
> it implies ssh is required. Quite why that would be I don't know, but
> it does rather suggest it might break the system if removed.
>
> # setld -i | grep Required
> OSFBASE540 installed Base System (- Required -)
> OSFHWBASE540 installed Base System - Hardware
> Support (- Required -)
> OSFOEMBASE540 installed Tru64 UNIX Base System (-
> Required -)
> OSFSSHBASE540 installed Secure Shell Base
> Components (- Required -)
>
> There are 117 software subsets installed, but 4 (one of which is the
> ssh) is listed as 'Required'. Hence my reluctance to remove it.
>
> However, I renamed /usr/bin/scp to /usr/bin/scp.orig on the Alpha and
> it now works okay!!! So as you thought, scp1 was being found on the
> Alpha since it was before OpenSSH scp in my path.
That should do the same thing as removal of the package.
> Cheers. I'll leave the rest of the ssh configuration on the Alpha, for
> fear of breaking the system.
Complete removal of the original SSH did not have any impact on my
Tru64-5.0b systems, but YMMV. Since it's working now just leave it as is.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-18 1:24 ` Ann Majeske
@ 2003-05-18 2:22 ` Nico Kadel-Garcia
2003-05-18 5:06 ` Kjell Andresen
0 siblings, 1 reply; 19+ messages in thread
From: Nico Kadel-Garcia @ 2003-05-18 2:22 UTC (permalink / raw)
Ann Majeske wrote:
> Here's the response I sent to Dr Kirkby's query to the
> tru64-unix-managers list:
>
> The version of ssh supplied with Tru64 UNIX does not
> implement the ssh version 1 protocol. So, it must have been
> your SUN system requesting sshv1 for some reason.
>
> You shouldn't try to remove the Tru64 version of
> ssh from your V5.1B system. It has been tied into the
> OS and is required for clusters.
>
> If you really need ssh v1 support, the recommended
> way is to install Openssh in addition to the Tru64
> version of ssh, and then configure the Tru64 version
> of ssh to call Openssh if it gets a v1 request.
> To do this you add the following options to the
> sshd2_config file:
> Ssh1Compatibility yes
> Sshd1Path /usr/local/sbin/sshd
> Sshd1ConfigFile /usr/local/etc/ssh/sshd_config
> and restart the Tru64 ssh daemon.
>
> Ann Majeske
Gack. Just gack. One may as well put one's head in a cheese grater.
The advantages of OpenSSH over the ssh.com code are sufficiently great
in security and flexibility that I'd strongly urge moving aside the
ssh.com binaries and using OpenSSH instead. This is precisely what I've
done on several Tru64 systems, and I haven't had a lick of trouble with
the OpenSSH.
Remember, given the death of the Alpha technology and the HP/Compaq
merger, we can expect Tru64 support to be phased out and abandoned over
the next years. And Tru64 *never* kept its packages that are available
as open software up-to-date, including tar, csh, make, grep, perl, etc.,
etc., etc.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-18 2:22 ` Nico Kadel-Garcia
@ 2003-05-18 5:06 ` Kjell Andresen
0 siblings, 0 replies; 19+ messages in thread
From: Kjell Andresen @ 2003-05-18 5:06 UTC (permalink / raw)
[HPs ssh is an required subset on Tru64 v5.1B]
Nico Kadel-Garcia <nkadel@verizon.net> writes:
> The advantages of OpenSSH over the ssh.com code are sufficiently great
> in security and flexibility that I'd strongly urge moving aside the
> ssh.com binaries and using OpenSSH instead. This is precisely what
> I've done on several Tru64 systems, and I haven't had a lick of
> trouble with the OpenSSH.
Me too; I have also suggested to HP through my service channel
to change the status to something other (not required).
> Remember, given the death of the Alpha technology and the HP/Compaq
> merger, we can expect Tru64 support to be phased out and abandoned
> over the next years. And Tru64 *never* kept its packages that are
> available as open software up-to-date, including tar, csh, make, grep,
> perl, etc., etc., etc.
My collegue made stated this when he helped me solve the case:
We don't spread ssh.com keys. If we had to do it it would be a total
number of ..
$ awk '{sum += split($1, a, ",")}END{print sum}' /etc/ssh/ssh_known_hosts2
9044
... 9044 files to /.ssh2/hostkeys/. Use /local/bin/ssh.
Regards,
Kjell Andresen Systems administrator, University of Oslo, Norway
Center for Information Technology Services and
Department of Geophysics
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
[not found] ` <Ncuxa.1651$MW.148431@localhost>
@ 2003-05-20 7:38 ` Dr. David Kirkby
2003-05-20 9:23 ` Casper H.S. Dik
0 siblings, 1 reply; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-20 7:38 UTC (permalink / raw)
gerryt@gtconnect.net wrote:
>
> In article <3EC598B9.EB6BEC4E@ntlworld.com>,
> "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
> > I've a Sun Ultra 80 running Solaris 9 and a Dec Alpha running Tru64
> > UNIX V5.1B. I'd like to securely copy a file from the Sun to the Dec
> > Alpha.
> >
> > Attempting to connect to the Dec Alpha (dobermann) from the Sun
> > (sparrow) using secure shell (ssh) works fine, using
> > public-key/private-key. Attempting to transfer a file via sftp works
> > fine too. But if I try to copy a file to the Dec Alpha using scp, it
> > fails to work. It seems odd that ssh and sftp work, but not scp.
> >
> > sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
> > Executing: program /usr/bin/ssh host dobermann, user davek, command
> > scp -v -t /tmp
> > scp: warning: Executing scp1 compatibility.
> > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> > scp1 is in your PATH).
> > lost connection
> >
> > (in each case, the secure xxx files are all Sun originals in /usr/bin.
> > )
>
> Hmm - Try: gunzip -c atlc-4.3.0.tar.gz|ssh -v dobermann "cd /tmp;tar xf -"
> IOW use ssh
> I think something is misconfigured
The method I on the Sun Ultra 80 running Solaris - namely:
scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
works fine to copy files to:
a) Sun SPARCstation 20's running Solaris 2.5, Debian, Redhat, NetBSD
and OpenBSD
b) PCs running Solaris 7 and Redhat.
c) Whatever the SouceForge site uses for their servers, since I copy
files to them using scp in the way I showed.
d) The Sun server at work, which runs SSH Secure Shell 3.1.0 from
www.ssh.com. In this case I needed to convert the keys to a suitable
format, but it does work.
I note that for case (d), the Sun does print a warning about using
scp1 compatability.
sparrow /export/home/davek % scp foo davek@duke:/tmp
scp: warning: Executing scp1 compatibility.
foo 100% |*****************************| 27636
00:00
I don't doubt something is mis-configured (I'd like to know what), but
do believe the way I was using scp is basically okay.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-20 7:38 ` Dr. David Kirkby
@ 2003-05-20 9:23 ` Casper H.S. Dik
2003-05-21 7:30 ` Dr. David Kirkby
0 siblings, 1 reply; 19+ messages in thread
From: Casper H.S. Dik @ 2003-05-20 9:23 UTC (permalink / raw)
"Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
>> > sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
>> > Executing: program /usr/bin/ssh host dobermann, user davek, command
>> > scp -v -t /tmp
>> > scp: warning: Executing scp1 compatibility.
I believe this message originates from the remote end.
SSH 3.x uses sftp as the protocol for "scp". (sftp is more like
NFS than ftp, it's not a streaming protocol)
>> > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
>> > scp1 is in your PATH).
>> > lost connection
Seems like you need "scp1" on the remote system or have your
PATH adjusted so it can be found.
>sparrow /export/home/davek % scp foo davek@duke:/tmp
>scp: warning: Executing scp1 compatibility.
>foo 100% |*****************************| 27636
>00:00
>I don't doubt something is mis-configured (I'd like to know what), but
>do believe the way I was using scp is basically okay.
Again, the warning is remote; but in this case scp1 exists and can be
found.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-20 9:23 ` Casper H.S. Dik
@ 2003-05-21 7:30 ` Dr. David Kirkby
[not found] ` <pY5za.1870$MW.166566@localhost>
0 siblings, 1 reply; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-21 7:30 UTC (permalink / raw)
"Casper H.S. Dik" wrote:
> > sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
> > Executing: program /usr/bin/ssh host dobermann, user davek, command
> > scp -v -t /tmp
> > scp: warning: Executing scp1 compatibility.
> > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> > scp1 is in your PATH).
> > lost connection
> I believe this message originates from the remote end.
Yes, I've come to that conclusion too. But is my local Sun requesting
protocol 1 - and if so why? Can I force scp on the Solaris 9 Sun to
try to negotiate only using protocol 2?
This is a summary of the facts about what happens when I attempt to
scp to a remote machine from my Ultra 80 running Solaris 9, with Sun's
ssh tools.
1) When attempting to scp to my own Dec Alpha running Tru64 UNIX,
which had no support for protocol 1, a FATAL ERROR is produced.
2) When attempting to scp to the universities Ultra 1 (running Solaris
8, sshd version 3.1.0 from www.ssh.com, configured to use protocol 1
or 2), the U1 produces a warning message that's its using protocol 1,
but connection occurs.
3) When I try to connect to any of my other 7 local computers (2 PCs
and 5 SPARCstation 20, all running OpenSSH configured for protocol 2
only), no warnings are issued. I'm pretty sure protocol 2 is used in
this case, since only the DSA public keys for my Sun are on these
machines.
These 7 machines run a variety of different operating systems -
Solaris 2.5, Debian (SPARC), Redhat (SPARC), OpenBSD (SPARC), NetBSD
(SPARC), Redhat (Intel) and Solaris 7 (Intel), but all have OpenSSH
3.6p1.
4) The U80 can scp files to itself with no warnings or errors. That's
probably not a very useful thing to do (cp is easier), but it does
work.
This leads me to suspect Sun's scp first attempts protocol 2, but this
fails except when connecting to a computer with OpenSSH. Protocol 1 is
then attempted, which generates a warning or fatal error, depending on
whether the remote machine can accept protocol 1 or not.
I don't know if that makes sense.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
[not found] ` <pY5za.1870$MW.166566@localhost>
@ 2003-05-22 21:05 ` Nico Kadel-Garcia
2003-05-23 10:46 ` Dr. David Kirkby
2003-05-23 10:29 ` Dr. David Kirkby
2003-06-02 8:08 ` Richard E. Silverman
2 siblings, 1 reply; 19+ messages in thread
From: Nico Kadel-Garcia @ 2003-05-22 21:05 UTC (permalink / raw)
gerryt@gtconnect.net wrote:
> In article <3ECB2B25.6E4739BB@ntlworld.com>,
> "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
>
>>"Casper H.S. Dik" wrote:
>>
>>
>>>>sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
>>>>Executing: program /usr/bin/ssh host dobermann, user davek, command
>>>>scp -v -t /tmp
>>>>scp: warning: Executing scp1 compatibility.
>>>>scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
>>>>scp1 is in your PATH).
>>>>lost connection
>>
>>>I believe this message originates from the remote end.
>>
>>Yes, I've come to that conclusion too. But is my local Sun requesting
>>protocol 1 - and if so why?
>
>
> Maybe a version issue. Try using ssh instead (which you say does work
> in a previous post):
>
There may also be multiple ssh and sshd daemons installed, along with
some potentially odd settings in the config files for the sshd. I'd
suspect the sshd operating on the target host is actually not the later
installed OpenSSH version. If it's ssh-2.x from ssh.com, then it *will
not operate* in ssh1 mode unless the ssh-1.x is pre-installed *before*
ssh-2.x compilation. This bit of nastiness is why the OpenSSH with a
single dual-protocol client and daemon is so much more supportable.
Tell your ssh client to use SSH-2 by saying ssh -o 'Protocol 2'" and see
what happens. And you need to make the *client* use protocol 2, not just
the server.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
[not found] ` <pY5za.1870$MW.166566@localhost>
2003-05-22 21:05 ` Nico Kadel-Garcia
@ 2003-05-23 10:29 ` Dr. David Kirkby
2003-06-02 8:08 ` Richard E. Silverman
2 siblings, 0 replies; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-23 10:29 UTC (permalink / raw)
gerryt@gtconnect.net wrote:
>
> In article <3ECB2B25.6E4739BB@ntlworld.com>,
> "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
> > "Casper H.S. Dik" wrote:
> >
> >> > sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
> >> > Executing: program /usr/bin/ssh host dobermann, user davek, command
> >> > scp -v -t /tmp
> >> > scp: warning: Executing scp1 compatibility.
> >> > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> >> > scp1 is in your PATH).
> >> > lost connection
> >
> >> I believe this message originates from the remote end.
> > Yes, I've come to that conclusion too. But is my local Sun requesting
> > protocol 1 - and if so why?
>
> Maybe a version issue. Try using ssh instead (which you say does work
> in a previous post):
>
> tar xpf - |ssh -vv davek@dobermann "cd /tmp;tar xpf -"
> Anything interesting show up?
I don't think that commmand makes any sence. What is being piped to
ssh?
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
2003-05-22 21:05 ` Nico Kadel-Garcia
@ 2003-05-23 10:46 ` Dr. David Kirkby
0 siblings, 0 replies; 19+ messages in thread
From: Dr. David Kirkby @ 2003-05-23 10:46 UTC (permalink / raw)
Nico Kadel-Garcia wrote:
>
> gerryt@gtconnect.net wrote:
> > In article <3ECB2B25.6E4739BB@ntlworld.com>,
> > "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
> >
> >>"Casper H.S. Dik" wrote:
> >>
> >>
> >>>>sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp
> >>>>Executing: program /usr/bin/ssh host dobermann, user davek, command
> >>>>scp -v -t /tmp
> >>>>scp: warning: Executing scp1 compatibility.
> >>>>scp: FATAL: Executing ssh1 in compatibility mode failed (Check that
> >>>>scp1 is in your PATH).
> >>>>lost connection
> >>
> >>>I believe this message originates from the remote end.
> >>
> >>Yes, I've come to that conclusion too. But is my local Sun requesting
> >>protocol 1 - and if so why?
> >
> >
> > Maybe a version issue. Try using ssh instead (which you say does work
> > in a previous post):
> >
>
> There may also be multiple ssh and sshd daemons installed, along with
> some potentially odd settings in the config files for the sshd. I'd
> suspect the sshd operating on the target host is actually not the later
> installed OpenSSH version. If it's ssh-2.x from ssh.com, then it *will
> not operate* in ssh1 mode unless the ssh-1.x is pre-installed *before*
> ssh-2.x compilation. This bit of nastiness is why the OpenSSH with a
> single dual-protocol client and daemon is so much more supportable.
This was pretty much a fresh install of Tru64 UNIX. I'd added a couple
of files to /usr/local and set up a user account, but apart from that,
there was no other software added, or major configuration changes and
nothing related to ssh.
> Tell your ssh client to use SSH-2 by saying ssh -o 'Protocol 2'" and see
> what happens. And you need to make the *client* use protocol 2, not just
> the server.
Well, I've given up now on dobermann (the Tru64 UNIX box) and
installed OpenSSH there, so its a bit late to do some more testing - I
am not going to go back and re-enable the original ssh stuff on the
Tru64 box.
However, the following 4 tests seem to indicate the Sun is quite
capable of running ssh protocol 2 or scp Protocol 2 and unwilling to
run protocol 1. (sparrow is the Sun with Solaris 9; dobermann De Alpha
running Tru64)
sparrow /export/home/davek % ssh -o 'Protocol 1' dobermann
Protocol major versions differ: 1 vs. 2
sparrow /export/home/davek % ssh -o 'Protocol 2' dobermann
Last login: Fri May 23 11:33:21 BST 2003 from sparrow
Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri May 2 21:42:35 BST 2003
$
sparrow /export/home/davek % scp -o 'Protocol 1' foo
davek@dobermann:\tmp
Protocol major versions differ: 1 vs. 2
lost connection
sparrow /export/home/davek % scp -o 'Protocol 2' foo
davek@dobermann:\tmp
foo 100% |*****************************| 27636
00:00
I've made no changes to the Sun, only on Dobermann where I've
installed OpenSSH. Now things seem to work fine, so I'm leaving well
alone.
It's possible I might run into problems on the Tru64 box if I had a
cluster, as the SSH is a required piece of softare and should not be
removed. But I don't have a license for the clustering software and
only one Dec Alpha anyway, so that's not an issue for me. However,
this issue would perhaps bother someone in a large corporate
enviroment with a Tru64 cluster.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail davek@medphys.ucl.ac.uk
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: scp problems between Solaris and Tru64
[not found] ` <pY5za.1870$MW.166566@localhost>
2003-05-22 21:05 ` Nico Kadel-Garcia
2003-05-23 10:29 ` Dr. David Kirkby
@ 2003-06-02 8:08 ` Richard E. Silverman
2 siblings, 0 replies; 19+ messages in thread
From: Richard E. Silverman @ 2003-06-02 8:08 UTC (permalink / raw)
>>>>> "DK" == <gerryt@gtconnect.net> writes:
>>> > sparrow % scp -v atlc-4.3.0.tar.gz davek@dobermann:/tmp >
>>> Executing: program /usr/bin/ssh host dobermann, user davek,
>>> command > scp -v -t /tmp > scp: warning: Executing scp1
>>> compatibility. > scp: FATAL: Executing ssh1 in compatibility mode
>>> failed (Check that > scp1 is in your PATH). > lost connection
http://www.snailbook.com/faq/scp-ossh-to-ssh2.auto.html
--
Richard Silverman
res@qoxp.net
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2003-06-02 8:08 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-17 2:04 scp problems between Solaris and Tru64 Dr. David Kirkby
2003-05-17 5:11 ` Dave Uhring
2003-05-17 9:45 ` Dr. David Kirkby
2003-05-17 14:39 ` Dave Uhring
2003-05-17 16:31 ` Michael Heiming
2003-05-17 18:39 ` Dr. David Kirkby
2003-05-17 19:18 ` Dave Uhring
2003-05-17 22:48 ` Dr. David Kirkby
2003-05-18 1:24 ` Ann Majeske
2003-05-18 2:22 ` Nico Kadel-Garcia
2003-05-18 5:06 ` Kjell Andresen
2003-05-18 1:24 ` Dave Uhring
[not found] ` <Ncuxa.1651$MW.148431@localhost>
2003-05-20 7:38 ` Dr. David Kirkby
2003-05-20 9:23 ` Casper H.S. Dik
2003-05-21 7:30 ` Dr. David Kirkby
[not found] ` <pY5za.1870$MW.166566@localhost>
2003-05-22 21:05 ` Nico Kadel-Garcia
2003-05-23 10:46 ` Dr. David Kirkby
2003-05-23 10:29 ` Dr. David Kirkby
2003-06-02 8:08 ` Richard E. Silverman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox