Tag Info

New answers tagged

0

I've split my answer into two separate answers so you can up/downvote the "wrapper" and "patch" approaches separately. Solution 2: Use the source, Luke! Like I mentioned in the update to my answer, OpenSSH doesn't support Match AddressFamily — yet. It's fairly easy to add a corresponding clause to the Match parsing in readconf.c. My proof-of-concept patch ...


0

I've split my answer into two separate answers so you can up/downvote the "wrapper" and "patch" approaches separately. Solution 1: Write a wrapper function ssh () { controlpath="" for argument in $@ do if [[ "$argument" = "-"*"4"* ]] then controlpath="~/.ssh/tmp/%l_%r@%h:%p.inet" fi if [[ "$argument" ...


5

The OpenSSH sshd command has an extended test switch which can be used to "Check the validity of the configuration file, output the effective configuration to stdout and then exit." (source sshd man page). So the answer is (as root, or prefixing it with sudo): sshd -T (the settings are not in alphabetical order, one can use sshd -T | sort to quickly look ...


2

This is not typical use case so there is no direct way of doing so. But, you can workaround this using user configuration file as such, if you don't require too many remote hosts: Host hostname-4 Hostname hostname AddressFamily inet ControlPath ~/.ssh/master4-%l%h%p%r Host hostname-6 Hostname hostname AddressFamily inet6 ControlPath ...


1

ssh-copy-id is actually a shell script as can be seen: $ which ssh-copy-id /usr/bin/ssh-copy-id $ file /usr/bin/ssh-copy-id /usr/bin/ssh-copy-id: POSIX shell script, ASCII text executable It’s a fairly simple script and the .ssh/authorized_keys path is hard-coded as the script isn’t written to deal with non-standard locations for the authorized_keys ...


4

Use a dynamic DNS service. This is basically a little script or daemon that calls into a dns server so it gets updated whenever the IP changes. There are a number of providers for this service. For home use or only a few addresses you can use a free service like duck dns. I've used them since dyndns kicked off all their free customers and haven't had any ...



Top 50 recent answers are included