Dear OpenSSH developers, Is there an equivalent ssh_config setting for the command line option ssh -N ... ? I want to connect to a server that doesn't provide an interactive shell but allows for port forwarding only. I'd love to configure this into my ~/.ssh/config as follows: Host foo Hostname ... Port ... User ... LocalForward ... LocalForward ... LocalForward ... SomeSettingEquivalentToDashN yes so I can call it via "ssh foo" instead of "ssh -N foo". Are there good reasons not to provide such a setting? Or, would you accept a patch that introduces such a setting? If so, how sould this setting be named? Regards, Volker -- Volker Diels-Grabsch ----<<<((()))>>>----
Hello Volker, I use ForceCommand /bin/false On my Debian system, /bin/false is a program that does nothing and returns a non-zero return code (i.e. an error code). Jack Volker Diels-Grabsch <v at njh.eu> wrote:> Dear OpenSSH developers, > > Is there an equivalent ssh_config setting for the command line > option > > ssh -N ... > > ? > > I want to connect to a server that doesn't provide an > interactive shell but allows for port forwarding only. I'd love > to configure this into my ~/.ssh/config as follows: > > Host foo > Hostname ... > Port ... > User ... > LocalForward ... > LocalForward ... > LocalForward ... > SomeSettingEquivalentToDashN yes > > so I can call it via "ssh foo" instead of "ssh -N foo". > > Are there good reasons not to provide such a setting? > Or, would you accept a patch that introduces such a setting? If > so, how sould this setting be named? > > > Regards, > Volker >-------------- next part -------------- A non-text attachment was scrubbed... Name: Encryption key for Jack Dodds.asc Type: application/pgp-keys Size: 1702 bytes Desc: not available URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20160809/7651ed15/attachment-0002.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP Digital Signature URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20160809/7651ed15/attachment-0003.bin>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Oops. You wanted an ssh option - not sshd. Sorry. Jack Dodds <brmdamon at hushmail.com> wrote:> Hello Volker, > > I use > > ForceCommand /bin/false > > On my Debian system, /bin/false is a program that does nothing > and returns a non-zero return code (i.e. an error code). > > Jack > > > Volker Diels-Grabsch <v at njh.eu> wrote: > > Dear OpenSSH developers, > > > > Is there an equivalent ssh_config setting for the command line > > option > > > > ssh -N ... > > > > ? > > > > I want to connect to a server that doesn't provide an > > interactive shell but allows for port forwarding only. I'd love > > to configure this into my ~/.ssh/config as follows: > > > > Host foo > > Hostname ... > > Port ... > > User ... > > LocalForward ... > > LocalForward ... > > LocalForward ... > > SomeSettingEquivalentToDashN yes > > > > so I can call it via "ssh foo" instead of "ssh -N foo". > > > > Are there good reasons not to provide such a setting? > > Or, would you accept a patch that introduces such a setting? If > > so, how sould this setting be named? > > > > > > Regards, > > Volker > >-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXqizPAAoJEChpvIQG4DsHjcsH/ihOfzfqwxAmDNxkZjNkqydo NFujnzKCPGlHYvYVeN2ruW0CW77q46c6rg8cHde5sK9Y7LmygcaoFWaePCNC+2h3 sN3YNM2biiTeiBhTUUK4CeC+ph3cVdQbQE8wQakATeeh3bzOt9heWT7CqAvGm3CY u5L+4TEtlbobwym6t/y6dhfBOsHeD5eqO77zYxZLmIE9PjY+SawTxzSO2XhhMMRf Z9Rzp4EiNTqzO8KJT5RD7OGGA44C2pyvrX0lAG59bFrzn9DGRmhXoGK4WhRUgYWZ CadhH13Inku7CklceundRoSnmOaui1PICZ/KzZOgZZiIKmPJC1JqAMuHmATSSJs=3l3D -----END PGP SIGNATURE-----
RequestTTY no -----Original Message----- From: openssh-unix-dev [mailto:openssh-unix-dev-bounces+scott_n=xypro.com at mindrot.org] On Behalf Of Volker Diels-Grabsch Sent: Tuesday, August 09, 2016 9:19 AM To: openssh-unix-dev at mindrot.org Subject: Equivalent ssh_config setting for "ssh -N" Dear OpenSSH developers, Is there an equivalent ssh_config setting for the command line option ssh -N ... ? I want to connect to a server that doesn't provide an interactive shell but allows for port forwarding only. I'd love to configure this into my ~/.ssh/config as follows: Host foo Hostname ... Port ... User ... LocalForward ... LocalForward ... LocalForward ... SomeSettingEquivalentToDashN yes so I can call it via "ssh foo" instead of "ssh -N foo". Are there good reasons not to provide such a setting? Or, would you accept a patch that introduces such a setting? If so, how sould this setting be named? Regards, Volker -- Volker Diels-Grabsch ----<<<((()))>>>---- _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev at mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Oops. That's -T. From the man page, it doesn't really look like there's an ssh_config option for -N. -----Original Message----- From: openssh-unix-dev [mailto:openssh-unix-dev-bounces+scott_n=xypro.com at mindrot.org] On Behalf Of Scott Neugroschl Sent: Tuesday, August 09, 2016 1:04 PM To: Volker Diels-Grabsch; openssh-unix-dev at mindrot.org Subject: RE: Equivalent ssh_config setting for "ssh -N" RequestTTY no -----Original Message----- From: openssh-unix-dev [mailto:openssh-unix-dev-bounces+scott_n=xypro.com at mindrot.org] On Behalf Of Volker Diels-Grabsch Sent: Tuesday, August 09, 2016 9:19 AM To: openssh-unix-dev at mindrot.org Subject: Equivalent ssh_config setting for "ssh -N" Dear OpenSSH developers, Is there an equivalent ssh_config setting for the command line option ssh -N ... ? I want to connect to a server that doesn't provide an interactive shell but allows for port forwarding only. I'd love to configure this into my ~/.ssh/config as follows: Host foo Hostname ... Port ... User ... LocalForward ... LocalForward ... LocalForward ... SomeSettingEquivalentToDashN yes so I can call it via "ssh foo" instead of "ssh -N foo". Are there good reasons not to provide such a setting? Or, would you accept a patch that introduces such a setting? If so, how sould this setting be named? Regards, Volker -- Volker Diels-Grabsch ----<<<((()))>>>---- _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev at mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev at mindrot.org https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev