GithubHelp home page GithubHelp logo

keidan / sshserver Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 6.0 3.91 MB

(GPL) Android SSH server (SSH/SCP/SFTP) is a FREE software.

License: GNU General Public License v3.0

Java 87.72% CMake 0.68% C++ 11.61%
ssh-server android-app mina

sshserver's Introduction

SshServer

Build Status GitHub license

(GPL) Android SSH server (SSH/SCP/SFTP) is a FREE software.

This application allows you to create several instances of SSH servers (SSH/SCP/SFTP).

⚠️❗ Due to the use of apache MINA 2.0 which uses java methods that are only implemented since Android 8.0, this branch is not compatible with an Android version < 8.0

⚠️ Due to the depredation of encryption providers (algorithms) see and without a solution at the mina-sshd API level, this application will no longer be supported after Android 9.0.

Notice

For non-rooted devices, the functionalities are severely limited (permission issues).

To limit (delete) issues related to /system/bin/sh and tty (below)

  • /system/bin/sh: can't find: tty fd No such device or address.
  • /system/bin/sh: warning: won't have full job control.

The process management is done directly via a native code with the direct use of the character file /dev/ptm.

❗❗❗ I don't know why, but, the code doesn't work properly if the build variant is not set to "debug" 💢.

Since /system/bin/ls and other basic binaries are not available without a root device, SCP and SFTP features will not be available for these devices.

Instructions

Download the software :

mkdir devel
cd devel
git clone [email protected]:Keidan/SshServer
cd SshServer
Use with android studio

⚠️ To compile this project, you must also install the CMAKE, LLDB (debug only) and the NDK packages.

See android studio cmake

License

GPLv3

sshserver's People

Contributors

keidan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sshserver's Issues

Android under 8(Oreo) not working

This app works great on Android 8, but if you run this app on Android 7 or below app will be crashed. Do you know what is reason.

Run app on port 22

I tried run app on port 22 official port for SSH but in Toast I see exception is it not possible to run on this port. I know ports under 1024 is reserved by Android OS. But in emulator GenyMotion you are root user. Do you have idea how to run on port 22 this app ?

Support of Android 7.0

Due to issue #2

Added support for Android 7.x :

  • Downgrade of the Appache MINA library.
  • Changed the management of notifications that do not work on Android 8.x as on Android 7.x
  • Other?

⚠️ I'm not planning this evolution, it will be done when I have a moment.

Shell Configuration Home

In ShellConfiguration you are put "DEFAULT_HOME", but when you make connection with SSH your root folder is not "/storage/emulated/0/download". Your root folder is "/".

public static final String DEFAULT_HOME = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getParentFile().getAbsolutePath();

Code

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.