Giter VIP home page Giter VIP logo

Comments (2)

holzschu avatar holzschu commented on July 16, 2024 1

I have, indeed, compiled sshd for iOS in ios_system. I'm currently stuck on the user-experience and configuration part of sshd.
In order to run commands from the outside world, sshd has a lot of security (that's understandable). You need to generate server keys, store them, deliver them to the client. And of course these keys are tied to the server IP address, and ssh (the client) will print an ominous warning or refuse to connect if the server IP address has changed since the server keys were generated, or if the server keys have changed. All of that makes sense for a desktop server; it is more complicated for an iPad or iPhone that is mobile by design, and will change IP address several times during the day.
Short version: the binary is not the problem, the configuration is. I'm taking time to think about how to do it right.

from a-shell.

bbb651 avatar bbb651 commented on July 16, 2024

I found a useful thread with some options for ssh configuration, specifically CheckHostIP and HostKeyAlias, although it requires manual configuration and I'm not even sure how to identify a-shell in the config, maybe by hostname?

I also found a suggestion somewhere to use ssh with a reverse shell which does handle ip changes, but that requires the connecting client having sshd running, authenticating on a-shell for the connecting client after authenticating on the connecting client for a-shell and is probably more inconvenient at this point than losing the connection on ip changes.

Another path is mosh support #3 which sounds like it would solve this from their README:

Mosh allows the client and server to "roam" and change IP addresses, while keeping the connection alive. Unlike SSH, Mosh can be used while switching between Wi-Fi networks or from Wi-Fi to cellular data to wired Ethernet.

But this seems to just be not true...

from a-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.