vagrant ssh -- EXTRA SSH ARGS is supposed to allow extra args to be passed to ssh.
vagrant ssh -- EXTRA SSH ARGS
vagrant ssh -- -t 'cd /var/www' should ssh into vagrant and change directory to /var/www, but doesn't. Instead it returns
vagrant ssh -- -t 'cd /var/www'
/var/www
ssh: Could not resolve hostname ls: nodename nor servname provided, or not known
What am I missing?
This works for me:
vagrant ssh -- -t 'cd /var/www; /bin/bash'
1.4m articles
1.4m replys
5 comments
57.0k users