[scponly] scponly on AIX with IBMs patches to OpenSSH

Frank Fegert fra.nospam.nk at gmx.de
Sun Dec 11 06:07:53 EST 2011


Hello,

just a heads-up: After a recent AIX update (6.1.5.1 -> 6.1.7.1) i
found that sftp connections via scponly would fail. After adding
the attached patch, things started working again. I opened a PMR
with IBM to clarify. Apparently they patched the OpenSSH sftp-server
and introduced a "-m" command line option, which is used to pass a
path to an alternative sshd_config file. Unfortunately they missed
to patch the "sftp-server -h" output as well as the sftp-server man
page, so it was a bit of a head scratcher at first :-(

Best regards,

    Frank


#################################################################
--- scponly.c.orig      2011-12-05 12:41:18.000000000 +0100
+++ scponly.c   2011-12-05 12:44:03.000000000 +0100
@@ -160,7 +160,7 @@
         * program name         use getopt?             strict optlist? badarg                  optlist                 longopts\n
         */
  #ifdef ENABLE_SFTP
-       { PROG_SFTP_SERVER,     1,                              1,                              NULL,                   "f:l:u:",               empty_longopts },
+       { PROG_SFTP_SERVER,     1,                              1,                              NULL,                   "f:l:u:m:",             empty_longopts },
  #endif
  #ifdef ENABLE_SCP2
        { PROG_SCP,             1,                              1,                              "SoF",                  "dfl:prtvBCc:i:P:q1246S:o:F:", empty_longopts },



More information about the scponly mailing list