Haven't found something that addresses my problem specifically.. Writing bash script to quickly get into a box, print what I want to see, and then leave the box if possible.
#!/bin/bash
ssh user@boxname ; cd /data/
This gets me into the box, but neither the echo, nor any directory change commands I input seem to run. I've also tried..
ssh user@boxname && cd /data/
or simply
ssh user@boxname
echo "im in"
I have a little experience with bash scripting, but I'm not sure why commands aren't being executed after ssh'ing into the box. Any direction and/or explanation would be greatly appreciated.