Bash - Run Vagrant SSH then execute a command without exiting

# Vagrant SSH into a box, run commands then keep the connection open vagrant ssh -- -t '<commands>; /bin/bash' # Vagrant SSH into a box and list all files in the `www` folder vagrant ssh -- -t 'cd /var/www; ls -la; /bin/bash'

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.