I'm trying to write a program that needs to use SSH.
This is how it is supposed to work:
The University wireless network requires you to sign in to a particular host using ssh before you are allowed to access the internet. (They're using authpf on OpenBSD if that helps.)
I want to write a program that does this for me, while using a NSStatusItem to indicate status.
Here is the problem: How should I interact with SSH? I don't need to interact with the session, I just need to set up a connection and launch a shell. Once that shell is running, the only thing I need to do is be able to disconnect.
I tried using NSTask to interact with the ssh app, but I ran into problems trying to pass a password to it.
I then tried to wrap libssh (http://0xbadc0de.be/wiki/libssh:libssh) into a Obj-C class. However, it seems to be a mess. According to everything the library is telling me, I should have a shell, but I can't confirm that using another ssh session and checking who's logged in. (The App's connection doesn't appear.)
Any ideas?
If any of this is unclear, I'll try my best to clarify it.
Thanks
This is how it is supposed to work:
The University wireless network requires you to sign in to a particular host using ssh before you are allowed to access the internet. (They're using authpf on OpenBSD if that helps.)
I want to write a program that does this for me, while using a NSStatusItem to indicate status.
Here is the problem: How should I interact with SSH? I don't need to interact with the session, I just need to set up a connection and launch a shell. Once that shell is running, the only thing I need to do is be able to disconnect.
I tried using NSTask to interact with the ssh app, but I ran into problems trying to pass a password to it.
I then tried to wrap libssh (http://0xbadc0de.be/wiki/libssh:libssh) into a Obj-C class. However, it seems to be a mess. According to everything the library is telling me, I should have a shell, but I can't confirm that using another ssh session and checking who's logged in. (The App's connection doesn't appear.)
Any ideas?
If any of this is unclear, I'll try my best to clarify it.
Thanks