Questions tagged [ssh]

Secure Shell (SSH) is a network protocol for secure remote shell services and command execution.

Filter by
Sorted by
Tagged with
2
votes
1answer
38 views

How to stream an encrypted backup of the entire device to remote host?

I have an Android device that has no free space and no SD-card that I can replace (thanks to OnePlus policy). I also have no free space on PC to accommodate the backup so I wanted to upload it to the ...
1
vote
1answer
1k views

How can I directly edit text files over SSH or FTP?

Sometimes I want to edit text files on a remote computer (such as linux scripts, websites, etc.) but I only have an Android device at hands (let's say I'm sitting in a train and have nothing better to ...
0
votes
0answers
19 views

ssh via my mobile phone

I need a mobile client which I can run the command given in this answer easily on it and also the port forwarding works on my mobile correctly without any need of being root. The command is: ssh -D ...
0
votes
0answers
13 views

How can I know the hostname of an Android phone for use in SSH connection?

When setting up public key authentication on SimpleSSHD server on my Android phone, by http://www.galexander.org/software/simplesshd/ Quick start Install SimpleSSHD. On any computer which ...
2
votes
0answers
59 views

Read GPS location from command line via SSH

I am wondering if there's a way to read the current GPS coordinates via SSH using SSHelper as SSH server. I came accross some similar threads: How to detect GPS status through adb shell? A way to ...
0
votes
2answers
6k views

How to connect to a Windows PC through SSH from an Android phone?

I have connectbot in my Android Phone (GT-N7000). How can I access a PC through that app ? I tried to use putty to establish ssh in my PC but it didn't work well. Can anyone give my a solution to this ...
0
votes
1answer
1k views

Changing PATH, HOME env variables of dropbear ssh session

I made a dropbear multi binary that has android patch. But everytime , when i login via ssh using dropbear as ssh server. On checking environment variables, I get :: HOME=/sdcard PATH=/sbin:/system/...
0
votes
1answer
949 views

How can I run a startup script for GNURoot Debian?

I've installed GNURoot debian on a rooted Android device and I can launch a debian shell programmatically using am, but I couldn't figure out how to run a command like starting dropbear. What's the ...
1
vote
1answer
57 views

How to make Termius look for hostnames on the local network first?

I have four devices: Windows 10 PC Android Phone (v6.0.1) Internet Router "servername" (Raspberry Pi 4) All are connected locally using Wifi (not that it should matter) using the simplest possible ...
1
vote
1answer
1k views

SSH client for Android with scp and sftp features [closed]

I have tried SSHjuice and Termius and neither of these have the scp features ( I couldn't find it in the free/trial version ). So can anybody tell me is there any SSH client (free version) for Android ...
2
votes
1answer
1k views

Setup VPN access through SSH

I have a Samsung S4 with last kitkat update. I would like to set it up so that I can access my University services. For that, when I use my laptop, I just set up a ssh tunnel like: ssh -D 8081 -f -C -...
4
votes
2answers
2k views

Automatic system-wide proxy

When I'm on a public network that I don't trust, I use a combination of ConnectBot and ProxyDroid (with "Global Proxy" enabled) to tunnel my phone's traffic through a trusted server that I control. ...
5
votes
1answer
2k views

SSH Tunnel through Android device

My friend has a little trouble getting around his new Linux system. I'm fairly knowledgeable in that topic so I want to SSH into his machine to take a look for myself. Problem is he lives in a ...
3
votes
1answer
388 views

How to run SSH/SFTP server for multiple user logins with password authentication on Android?

I want to run an SSH server on my Android phone so that my clients (varying between 10 to 20) can easily and securely share data with me when I'm on the go, without using any third party hosting ...
10
votes
3answers
5k views

How can I see the fingerprint of my adbkey?

You should know that Android 4.2.2 (or just before) introduced RSA key checking for adb access. – The device asks now if you want to allow access. To avoid asking every time, the computer presents an ...
0
votes
1answer
30 views

Android SSH with AWS and JuiceSSH

I am trying to use JuiceSSH to connect to my Amazon instance with Ubuntu and I am unable to skip the request for password, documentation says I should be using -i in the ssh command but I don't see ...
0
votes
0answers
46 views

rooted device: how to run SSH server persistent even on reboot

I (linux user but not an expert) just moved from iOS to android, my device is rooted (Samsung s9) and I want a ssh server running all the time on my android device (I prefer openssh over dropbear) ...
3
votes
1answer
3k views

How to connect to Android through SSH over 3G/4G public IP?

I am having an Android device and I want to connect in via 3G/4G and I am getting connection refused. Any ideas how to do that?
1
vote
1answer
95 views

How to connect two phones via SSH with a central SSH server?

I have two phones A and B which use Mobile Data. I would like to connect from phone A to phone B, the later has an SSH server running on port 8022. The central SSH server is running on AWS and has an ...
0
votes
0answers
28 views

I still get permission denied (pubkey, password) after I disabled PubkeyAuthentication and having restarted my nethunter phone

I'm trying to setup my nethunter phone to use its ssh server. However, no matter how hard (not smart) I try, I get the permission denied (publickey, password) error. On my phone-server, my sshd_config ...
3
votes
1answer
360 views

How to SSH into Android which is a hotspot?

I am using Wi-Fi hotspot on Android. Can I SSH into it from my laptop which is connected to hotspot? How would I do this?
0
votes
0answers
21 views

Problem with SFTP after converting from sh to bash at login

After SSHing into the android box (SSHDroid app provides the host) I followed psyincerise's answer (the last one listed) at How to set bash as default shell?. It let me directly log into bash but it ...
1
vote
1answer
522 views

SimpleSSHD - create reusable user/password?

I have downloaded SimpleSSHD (aka Dropbear) to access my Android via SSH. I am able to do so with the one-time password, but I'm trying to write a Python script that can access the phone. Is there a ...
1
vote
1answer
145 views

How to connect to a SSH server from Android client?

I can install and run an SSH server on my Android 6.0 phone (Banana SSH server), and I can run an SSH client on it (Termius), so how do I invoke the client from on the command line that the server ...
3
votes
0answers
105 views

Can I install GNU/Linux in text mode on android?

I want to use my old smartphone (Moto 3G) like Rassbery Pi to make some low level things with just terminal. I want to install GNU/Linux in text mode, get access to it with SSH, get connection to ...
2
votes
0answers
565 views

Unable to connect to SSH server via Tor

I'm attempting to connect to my SSH server via Tor on my rooted Android. I couldn't find an SSH client for Android that supports the use of a SOCKS proxy, so I tried to use transparent proxying with ...
9
votes
4answers
10k views

Accessing termux user environment from other consoles

I've recently started using the amazing Termux terminal app and linux environment. It provides a wealth of full-function terminal utilities. It would be great to be able to access these utilities ...
1
vote
1answer
791 views

How to SCP files from a PC to storage in Termux

I can scp files from my Linux server to Termux directory on my Android smartphone but Termux directory is not accessible through file explorer. What exactly should be the destination path for scp so ...
2
votes
1answer
359 views

How to find UID of an app installed on Android and use it as a shell user?

I am trying to find a way to determine the user name of the current shell user from within a shell / terminal on an Android device. The Android environment that I have in /system/bin and /system/xbin ...
1
vote
2answers
182 views

Can any computer connect to a SSH server running on an android phone connected to a wireless mobile network? [duplicate]

I run a ssh server on an Android phone using SimpleSSHD. When the phone is connected to a wifi network, I can connect to the SSH server from a computer in the same wifi network. When the phone is ...
0
votes
1answer
1k views

SSH Tunneling with Android; Not working;

I have a rooted Galaxy S4. I'm trying to establish an SSH tunnel so I can access mysql from my phone. I've tried using multiple SSH apps to tunnel but I can never get any of my tunnels to work. I ...
0
votes
0answers
76 views

Remote Connection to Phone's File System

I have been researching how it is possible to gain access to a phone's file system using something like the phone number, IMEI number or other identification number in a similar way that I can SSH or ...
0
votes
0answers
29 views

What's a good place for public SSH keys on my filesystem?

I'm using an SFTP server app on my Android phone (RedMi 3S); it's a typical Android app, not something requiring root or run as an ARM binary from the command-line). This server app lets me define ...
1
vote
1answer
2k views

Permission denied while installing a system app with SSH

I have the APK file for an application I want to install as a system application via SSH on rooted Android tablets. I'm able to install this application via ADB with a script but the installation ...
6
votes
2answers
15k views

How do I install DropBear SSH on Android?

I would like to install DropBear SSH on my 64 bit Android 5.1 device, but it seems that all the installation tutorials and how-tos have disappeared or contain links to broken files/downloads. Could ...
0
votes
0answers
25 views

Connect to a phone with ssh connect [duplicate]

I learned that android is a variant of Linux. With *nix, I could connect to another machine within the LAN (with identical wifi) by SSH $ ssh assistant@assistant.local algorithms@assistant.local's ...
0
votes
1answer
119 views

IP Address changes when using SSHDroid

I want to transfer files wirelessly between my android phone and Linux computer (XUbuntu 18.04). It works when I use SSHDroid as an SSH server on my phone and connect to it with sshfs to mount the ...
23
votes
12answers
48k views

Are there any command line SSH clients available for rooted Android phones?

I of course have ConnectBot, but I'm looking for something I can script. Edit: To clarify here, I'm not interested in running scripts from a terminal. What I want to do is run an SSH command in an ...
0
votes
0answers
99 views

Android JuiceSSH endless prompt to enter Interactive Aunthentication password

I am new to network stuff. Normally I connect to the internet provided by the student dormitory using the login client that they provide. But it is inconvenient as I always have to switch on my ...
0
votes
1answer
434 views

Controlling phone and making calls remotely

I'm wondering if there's a way to connect to my phone via, say, ssh and be able to make calls and send texts remotely. Use case would be for when I'm abroad but have internet, I'd be able to contact ...
1
vote
0answers
131 views

How can I list the contents of my sd card over ssh

I try to list the contents of my sdcard using kdeconnect. As I understand it, this is done using an ssh connection (sshfs). When I try to list the contents of the sd card on my computer, e.g. ls /run/...
6
votes
2answers
46k views

WinSCP for android equivalent

Is there a drag/drop ssh client for android so I can connect to my home server via ssh and easily transfer files from server to android phone? something like winSCP for Windows?
3
votes
1answer
2k views

Connect from Android to SSH server without password

I want to run scripts on an Ubuntu PC from my Android phone just with a tap, no passwords or other stuff. Things I did so far: I managed to connect via SSH to the PC, but I cannot configure a public-...
1
vote
2answers
4k views

How do I change the terminal font?

I notice a difference in the terminal font between two of my Android devices, specifically in terms of character coverage (in both cases it's the terminal shell of JuiceSSH). How do I set the font ...
6
votes
2answers
4k views

Android keyboard and remapping the CTRL key

I have an Samsung Galaxy 10.1 running Android version 4.1.2. I am using ssh to remotely connect to my main machine which runs Ubuntu 12.04 LTS. Once I am connected I do all my work in emacs 24.3. I ...
5
votes
1answer
6k views

SSH Key generation

How do I generate a pair of SSH keys to be able to use in several apps (Juice SSH, Turbo, etc) to access my remote host? I've tried generating them with Connectbot, JuiceSSH and on a Linux machine, ...
0
votes
0answers
956 views

How can I setup a local SOCKS5 proxy that doesn't require Android VPN service?

I need a local SOCKS5 proxy server that doesn't use the Android VPN service. Why? Because I want to chain it with the no-root firewall NetGuard. NetGuard already uses the Android VPN service. ...
2
votes
1answer
2k views

Using LineageOS native SSHD over ADB

Ive got most of the way to getting native sshd working over usb (mainly for shell and winscp), but very murky and not quite there yet. I want to use the built-in sshd, not download an app for it. ...
3
votes
2answers
2k views

SSH tunnel with two hops

I would like to build an ssh tunnel from my android device (call it A) on port MMM to a machine C on port NNN. HOWEVER, A and C are not directly connected. They are only connected through machine B (...
0
votes
1answer
1k views

Port forwarding to USB Tether

I have RaspberryPi which connected to Android Phone via USB and USB Tethering is up. Android Phone is connected to Home Router (Wi-Fi). With this setup, my Raspberry Pi can reach the internet with USB-...