开发者

Android: Logging on to SSH server for internet access [closed]

开发者 https://www.devze.com 2023-01-16 17:49 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Ove开发者_如何学Pythonrflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Ove开发者_如何学Pythonrflow.

Closed 10 years ago.

Improve this question

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!


After struggling, I finally got it to work:

  1. Download BotSync from the market,
  2. Set up the connection entering the server you want to connect to, port 22, your username/password, leave the remote dir and local dir fields blank, a large number (e.g 9000) into the "period" field and start the connection.

You'll get an error message Error:Illegal sftp packet len:xxxxxxxx. Just ignore it, you're already logged in.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消