Sample Header Ad - 728x90

Can i used these aliases in some sort of config file?

0 votes
1 answer
113 views
### I have many of these kinds of aliases, the part before = is the host in ssh config
alias sshConfigHost='ssh -t hostname docker exec -it containerName bash'
Could I add these to some sort of config file? The hostname is defined in ssh config so it's being used twice in a way, could I have a place holder like % that it would take the hostname from ssh config. If not then could I at least have the container name in my ssh config, then pull it into the cmd using a placeholder?
Asked by Nickotine (554 rep)
Nov 2, 2023, 05:25 PM
Last activity: Nov 2, 2023, 07:03 PM