Bug#390344: ssh-copy-id: Should specify that the remote command must be ran with /bin/sh
Package: openssh-client
Version: 1:4.3p2-3
Severity: normal
When the remote login shell isn't bash, the command at line 41 of ssh-copy-id "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys"
may fail. This is the case with fish because it doesn't support "||". We should specify /bin/sh -c COMMAND because the user doesn't always know the
shell on the other side.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-p3
Locale: LANG=fr_CA, LC_CTYPE=fr_CA (charmap=ISO-8859-1)
Versions of packages openssh-client depends on:
ii adduser 3.97 Add and remove users and groups
ii debconf [debconf-2. 1.5.4 Debian configuration management sy
ii dpkg 1.13.22 package maintenance system for Deb
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libcomerr2 1.39-1 common error description library
ii libedit2 2.9.cvs.20050518-2.2 BSD editline and history libraries
ii libkrb53 1.4.4-1 MIT Kerberos runtime libraries
ii libncurses5 5.5-3 Shared libraries for terminal hand
ii libselinux1 1.30.28-1 SELinux shared libraries
ii libssl0.9.8 0.9.8c-1 SSL shared libraries
ii passwd 1:4.0.18.1-3 change and administer password and
ii zlib1g 1:1.2.3-13 compression library - runtime
openssh-client recommends no packages.
-- no debconf information
Reply to: