[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#404442: marked as done (openssh-client: sftp ignores -o options)



Your message dated Mon, 25 Dec 2006 12:08:50 +0000
with message-id <20061225120850.GP28442@riva.ucam.org>
and subject line Bug#404442: openssh-client: sftp ignores -o options
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: openssh-client
Version: 1:4.3p2-7
Severity: normal


Sftp ignores -o options so you can't set alternative port or another ssh
options. This command wouldn't work:

sftp login@host -oPort=1234

You must use alternative config with Port option:

echo "Port 1234" > ~/.ssh/sftp
sftp login@host

SSH client accept -o options so I think we have little bug...

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.1-GreyPC-00
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages openssh-client depends on:
ii  adduser  3.100                           Add and remove users and groups
ii  debconf  1.5.8                           Debian configuration management sy
ii  dpkg     1.13.24                         package maintenance system for Deb
ii  libc6    2.3.6.ds1-8                     GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library
ii  libedit2 2.9.cvs.20050518-2.2            BSD editline and history libraries
ii  libkrb53 1.4.4-4                         MIT Kerberos runtime libraries
ii  libncurs 5.5-5                           Shared libraries for terminal hand
ii  libssl0. 0.9.8c-4                        SSL shared libraries
ii  passwd   1:4.0.18.1-6                    change and administer password and
ii  zlib1g   1:1.2.3-13                      compression library - runtime

openssh-client recommends no packages.

-- no debconf information

----------------------------------------------------------------------
Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e



--- End Message ---
--- Begin Message ---
On Mon, Dec 25, 2006 at 12:10:14AM +0100, GREY wrote:
> Sftp ignores -o options so you can't set alternative port or another ssh
> options. This command wouldn't work:
> 
> sftp login@host -oPort=1234

The man page says:

SYNOPSIS
     sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
          [-o ssh_option] [-P sftp_server_path] [-R num_requests]
          [-S program] [-s subsystem | sftp_server] host
     sftp [[user@]host[:file [file]]]
     sftp [[user@]host[:dir[/]]]
     sftp -b batchfile [user@]host

As documented, options come first, so use 'sftp -oPort=1234 login@host'.
Relaxing this could change behaviour for people using the second usage
format to copy files beginning with '-', so I'd rather not.

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]

--- End Message ---

Reply to: