Hi, When there is a blank in the name scp doesn't work correctly: bjacke at lamarr:~ > scp -v telefon.cgi lamarr:a\ directory/ Executing: program /usr/bin/ssh host lamarr, user (unspecified), command scp -v -t ein directory/ Enter passphrase for RSA key 'unon at rzstud1': scp: ambiguous target bjacke at lamarr:~ > By the way ... -v seems to be broken for scp in openssh 2.3. I use openssh 2.3.0p1. Another problem which looks a bit more complicated to me are IPv6 IPs. They have : as delimiter so that this makes big problems if one wants to use a IPv6 IP (e.g. you don't have a name for a host but just the IP) and ssh also uses : for seperation of host and file name. Has anyone a good idea how to solve this problem? Ciao, Bj?rn -- Bj?rn Jacke ? E-Mail: bjacke at suse.de SuSE GmbH ? Schanz?ckerstr. 10 ? 90443 N?rnberg ? Germany -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20001121/00c96249/attachment.bin
On Tuesday, November 21 2000, Bj?rn Jacke said:> When there is a blank in the name scp doesn't work correctly: > > bjacke at lamarr:~ > scp -v telefon.cgi lamarr:a\ directory/ > Executing: program /usr/bin/ssh host lamarr, user (unspecified), command > scp -v -t ein directory/ > Enter passphrase for RSA key 'unon at rzstud1': > scp: ambiguous target > bjacke at lamarr:~ >You need to double escape the space. Otherwise, your escaping only affects the local shell and not the shell invoked on the remote machine. So use something like scp -v telefon.cgi lamarr:a\\\ directory/ Cheers, Jeremy -- Jeremy Katz katzj at linuxpower.org | jlkatz at eos.ncsu.edu http://linuxpower.org | Developer, NCSU Realm Kit for Red Hat Linux GPG fingerprint: 367E 8B6B 5E57 2BDB 972A 4D73 C83C B4E8 89FE 392D QOTD: After years of research, scientists recently reported that there is, indeed, arroz in Spanish Harlem. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20001121/0c8d096f/attachment.bin
Apparently Analagous Threads
- [Bug 14163] New: RSYNC_SSL_PORT env should be set for invocation of --rsh command
- [Bug 2384] New: AllowUsers doesn't allow users sssd domain users with @ in
- UTMP logging in Samba 3.0.1 does not have hostnames
- [Announce] Samba 3.5.0pre1 Available for Download
- [Announce] Samba 3.5.0pre1 Available for Download