ssh session within a bash script
I was attempting to create a bash script which would set up the ad hoc network i needed to tether my laptop to my iPhone.
I then tried to expand it by SSHing in to my iPhone and starting the SOCKS and BIND daemons then all I have to do is set up the SOCKS proxy on the laptop and I'm done. However, I discovered that once the SSH connection is establish it just waits for manual input then when I exit out the commands I intended to be run in the SSH session are executed on my laptop.
I was wondering if anyone could help me out with making this work the way I was envisioning.
Moral of the story is to be more persistant in research before asking for help. Figured out to include the desired commands in quotes as part of the ssh command.
|All times are GMT -5. The time now is 06:46 PM.|