tags:

views:

111

answers:

2

Hi guys, At my campus, to get internet connection, I need to log on to a SSH server like they write:

...you must manually log in to the firewall server, by establishing a pseudo-tty-less ssh connection to it. The following command can be used on most systems: ssh -T -l [username] [server-URL] I must be logged on to the server for as long as I want internet.

Does anyone have any idea how to accomplish this on Android?

I have a little experience in writing basic apps for Android, but not much with SSH, any help is appreciated.

/Update Tried ConnectBot, but the server replies "You may only connect without a pseudo-tty!" at login attempt. I have no idea what "pseudo-tty" is, and I have looked in the settings of ConnectBot, there is no mention of this.

/Update2 Searched for any further info about the pseudo-tty-less function, in connection with OpenSSH. No luck so far, only a definition of the -T parameter which has no equivalent in ConnectBot.

/bump Still very interested in any further suggestions!

A: 

You can look at Connectbot, it has an ability to tunnel ports. I'm not sure if it solves your problem though.

Ikke
Thanks, I tried ConnectBot. I can connect to the server, but after I write my password it says "You may only connect without a pseudo-tty!"
Svante
A: 

ConnectBot is open source, so is OpenSSH. Take a look at what -T does in OpenSSH, and see if there's similar functionality in ConnectBot.

anonymouse
The only info I could find in OpenSSH about the -T parameter was "-T Disable pseudo-tty allocation.". I can find no such functionality in ConnectBot. It doesn't really get me closer, but thanks for the tip.
Svante