There’s a lot of answers already, but they all seem overly complicated or solve problems the asker didn’t have.
simply:
# save the config to a file
vagrant ssh-config > vagrant-ssh
# run ssh with the file.
ssh -F vagrant-ssh default
More Related Contents:
- How do I copy a folder from remote to local using scp?
- Useless use of cat?
- How to use SSH to run a local shell script on a remote machine?
- How can I reverse the order of lines in a file?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Shell command to find lines common in two files
- How to download GitHub Release from private repo using command line
- How can I check the version of sed in OS X?
- Can I ssh somewhere, run some commands, and then leave myself a prompt?
- is it possible to use variables in remote ssh command?
- How to kill all processes matching a name?
- CMake’s execute_process and arbitrary shell scripts
- Is there a “standard” format for command line/shell help text?
- How to input automatically when running a shell over SSH?
- Take a full page screenshot with Firefox on the command-line
- How to run SWI-Prolog from the command line?
- “No such file or directory” but it exists
- Getting the last argument passed to a shell script
- What is the difference between $@ and $* in shell scripts?
- Remove duplicate lines without sorting [duplicate]
- How does the #! shebang work?
- How do I set $PATH such that `ssh user@host command` works?
- How to exclude this / current / dot folder from find “type d”
- Losing newline after assigning grep result to a shell variable
- How to reload .bash_profile from the command line
- in mac always getting zsh: command not found: [closed]
- Write byte at address (hexedit/modify binary from the command line)
- How to execute a script remotely in Python using SSH?
- How to check if an URL exists with the shell and probably curl?
- Multiple commands on remote machine using shell script