First I'm not sure if this is the correct place to post this, but it seemed the most fitting.
I recently moved into University Residence. We do have internet services, but it requires an ssh login through terminal.
So something like "ssh username@10.0.0.1" then enter then put in your password. I was trying to automate this process so I could simply click on something and my internet works. It gets tiresome having to do this every time I want internet.
So my current progress involves me creating a "Internet.command" file with the lines:
ssh username@10.0.0.1
sleep 2
password
Unfortunately this does not seem to work out. It seems as though the password is not entered. If I simply leave out the last two lines I can get to the point I just have to enter my password and hit enter.
How would I go about doing this all automatically? I tried the recording functions through automator, but this also failed at being all inclusive. Required me to click on terminal at just the right moments. If anyone could hlep me with this it would be greatly appreciated.
I recently moved into University Residence. We do have internet services, but it requires an ssh login through terminal.
So something like "ssh username@10.0.0.1" then enter then put in your password. I was trying to automate this process so I could simply click on something and my internet works. It gets tiresome having to do this every time I want internet.
So my current progress involves me creating a "Internet.command" file with the lines:
ssh username@10.0.0.1
sleep 2
password
Unfortunately this does not seem to work out. It seems as though the password is not entered. If I simply leave out the last two lines I can get to the point I just have to enter my password and hit enter.
How would I go about doing this all automatically? I tried the recording functions through automator, but this also failed at being all inclusive. Required me to click on terminal at just the right moments. If anyone could hlep me with this it would be greatly appreciated.