Artificial intelligent assistant

ssh ControlPath use ip address instead of hostame %h Presently I am using this for controlpath ControlPath /home/user/.ssh/sockets/ssh_mux_%h_%p_%r If i connect to a hostname 'redishost' it creates socket with redishost If i connect to same host 'redishost' with its ip address it creates socket with ip address > Is it possible to use ip for all ssh connections instead of hostname %h in controlpath ?

after checking openssh documentation and source I found that `openssh don't have any token for controlpath expression where ip address can be specified.` In case if you want to use it you can use my repo which I edited source of openssh and added the token %x for ip address resolving.

Now ControlPath becomes:


ControlPath /home/user/.ssh/sockets/ssh_mux_%x_%p_%r


ControlPath supported tokens:


"l", thishost,
"n", host_arg, "n", host_arg,
"p", portstr, "p", portstr,
"x", hostip,
"r", options.user, "r", options.user,
"u", pw->pw_name, "u", pw->pw_name,
"i", uidstr, "i", uidstr,
"h", host,


<

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy fc4015e4635083eb61ba9724f5347153