Questions tagged [ssh]

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

Filter by
Sorted by
Tagged with
45
votes
3answers
65k views

Is there some SSH server for android?

Is there an ssh server for Android (such as openssh for Ubuntu) that will allow me to access my device console via PuTTY?
25
votes
4answers
3k views

Automatically connect to Wi-Fi nodes, but route everything through encryption

Related to my question about VPNs, is there any way to get my phone to automatically connect to unencrypted access points, but route all my traffic through my home network? This would be kind of like ...
23
votes
12answers
49k 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 ...
16
votes
1answer
3k views

SSH (and SFTP) server on Android discoverable through avahi/bonjour

I would like for my Android device (a Samsung Galaxy) to be discoverable through avahi/bonjour when it is connected to a WiFi network, and then to be able to access its filesystem via SSH (SFTP). For ...
15
votes
2answers
21k views

Is it possible to use an Android device as X11 server for a remote machine over SSH?

When my desktop computer is up, I can connect to it with my notebook, even over the internet (I've set up my router to forward SSH to my desktop computer). My desktop computer runs GNU/Linux (Ubuntu ...
14
votes
3answers
15k views

Command to install app from phone?

I'd like to SSH into my phone, download an APK, and install it remotely. Is there a command available on the phone that would allow me to do this? EG: wget localhost/file.apk android_install file....
13
votes
2answers
15k views

how to run a specific app's action via terminal?

I need to run my android app from a remote computer via SSH, but I'm not a command-line expert, so I would like to know: how to run a specific action of an app? (not just open it) Which implies: how ...
13
votes
2answers
43k views

How to start SSH Server in my Android?

I am trying to login to Android Eee pad transformer from my other linux box using SSH. This are the step i followed and failed. So asking here for the correct answer. 1) Go to Android market and ...
12
votes
3answers
24k views

How to return to the home screen with a terminal command?

Is there a terminal command to go to the home screen? I need to do this via ssh, so I cannot just push the "home" button, I need to send a command-line action..
10
votes
2answers
14k views

Where to add SSH keys to allow connections to remote server on Android?

I'm using a rooted custom Android kernel (Gingerbread), and am able to connect to a remote SSH server with password authentication using busybox and a terminal emulator app. I would like to be able ...
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 ...
10
votes
2answers
13k views

Write permission on certain paths, like the SD card (extSdCard)

In an attempt to transfer a file from a remote server to an Android device I ran into permission problems. It turns out that I do not have a write permission at the location of the SD card (/mnt/...
10
votes
1answer
4k views

SSHelper: SD card Permission denied

I am unable to write to my sdcard using SSHelper: u0_a264@MSM8974:/storage/sdcard1 $ df /storage/sdcard1 ...
10
votes
2answers
2k views

Why is the SSH server not working on Android 4, are the ports being blocked?

I am having difficulty ssh'ing into my new Android 4 (Samsung Nexus) phone. I have installed various SSH Servers but in in all cases the ssh connection just hangs (i.e. I don't get as far as username/...
9
votes
4answers
11k 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 ...
9
votes
1answer
9k views

How can I remotely change the volume?

At home I often connect my android to some speakers, to listen to internet-radio. It would like to be able to change the sound-level through a command on my laptop. I can open an ssh shell to the ...
8
votes
4answers
5k views

Synchronising files over SSH

I have an SSH server providing access to my files at home, secured by a private key. I'd like to be able to synchronise those files with my Android phone (Samsung Galaxy Note, running Cyanogenmod 11 (...
7
votes
2answers
20k views

scp and rsync to transfer data from Linux to Android

I'd like to be able to push PDF files onto a phone/tablet with a Bash script. Is it possible to transfer data using scp (or even rsync) from a Linux computer to an Android phone over wireless? Could ...
7
votes
3answers
2k views

How can I securely store my private key I use for logging into my home PC

I've been told that the SD card is a terrible place to store secure data because any app can read it. How else can my phone store my private key I use to log into my home PC ssh server?
7
votes
2answers
2k views

SSH Tunnel with Android

Without rooting, how can I SSH tunnel to my homePC running sshd? I need ssh tunnel to VNC home, but i don't trust VNC, so I want to use it with SSH to make it safe! Thank you for any help!
7
votes
1answer
3k views

Terminal emulator's ssh trying to read /data/.ssh instead of $HOME/.ssh

When I try using Terminal emulator's ssh I get ssh: Warning: failed creating /data/.ssh: Permission denied. or since 2012-08-19: Could not create directory '/data/ssh_client'. But when I type: ...
7
votes
4answers
9k views

How to SSH into Android from a different network? [closed]

I'm running SSHDroid on my unrooted android device. When my SSH client on ubuntu or windows are on same wifi network as the Android, I'm able to connect to it via SSH. But what I want to do is, ...
7
votes
1answer
1k views

Exotic key combos (e.g. for emacs) with bluetooth keyboard

I recently bought a bluetooth keyboard (logitech, not sure of the exact model) for my Nexus 10 (on Android 4.3). It works nicely for everything except for some unusual key combos used in Emacs, such ...
7
votes
0answers
1k views

Why is sftp (client) so slow on Android? [closed]

I've encountered this across numerous Android clients on several devices and I don't understand it. Why is sftp so slow? For instance, transferring a single large file from my laptop vs my Nexus 7 ...
6
votes
2answers
16k 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 ...
6
votes
3answers
2k views

Set hostname for SSHelper

I currently use SSHelper to transfer my data to the Android 4.0 device. The app displays the IP address that is currently assigned. Since this IP address changes regularly, I'd like to use a hostname ...
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 ...
6
votes
4answers
2k views

what is the most comfortable way to ssh and vim/latex/c++ on android?

I'm debating if i should get droid x. i'd like to use it for work, meaning latex and code in c++. I use vim. i know this is possible with connectbot. but possible doesn't mean i can substitute a ...
6
votes
2answers
47k 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?
6
votes
1answer
3k views

Is there some SSH server for android-x86?

I am using Android ICS x86 build for debug purposes in VMware Workstation, but I can't find any ssh server, so how can I install ssh server on it? I've tried SSHDroid, Dropbear SSH and some others - ...
6
votes
1answer
7k 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, ...
5
votes
2answers
889 views

How can I explore my android from my computer

I'd like to explore the content of the internal memory. I have a rooted phone with a terminal emulator which allows me to navigate through it. The problem is that it's quite hard to use (small screen,...
5
votes
1answer
5k views

How to get battery status in terminal?

I have gingerbread(2.3.6) phone with dropbear installed. I usually access my phone over wifi & run commands in putty. I want to get Battery status & percentage in terminal. Is there any ...
5
votes
1answer
5k views

Run android application from remote computer

I have asked this question in StackOverflow, but I figured it should be asked here... I need to run my android application from remote computer (in the same network) via SSH (not using ADB). How do I ...
5
votes
2answers
3k views

Running a tasker task via SSHDroid (or adb shell)

I'm trying to run a tasker task manually from ADB Shell, via SSHDroid. I'm running the following in putty (Windows SSH client): am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -es task_name ...
5
votes
1answer
1k views

CM7: How to enable passwordless SSH login on same network?

I'm running CyanogenMod 7 and I'd like to enable passwordless SSH login to my main Linux computer on my network, but only when the phone is accessing the server over the same network. How/where should ...
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 ...
4
votes
1answer
14k views

How to ssh into an unrooted Android device using sshdroid from a Linux computer

I can't seem to ssh into my Android device. I have not rooted the device and I don't really want to. I tried connecting to it via the terminal using the following command: ssh root@ip-address:port-...
4
votes
1answer
4k 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?
4
votes
1answer
7k views

How to access a linux shell from my phone via bluetooth?

Basically I want to send shell commands from my phone to my PC (Ubuntu 11.10) via bluetooth. Why? Because I don't always have WLAN and WLAN on my phone sucks. All possible solutions are welcome. I ...
4
votes
1answer
6k views

How can I set the correct SELinux / SEAndroid policy for an App?

I am using the free SSHelper SSH server on my phone to get SSH access. However, the application is not behaving correctly under SELinux when set to Enforcing mode, but seem to be OK when using ...
4
votes
4answers
17k views

Send files from Linux to Android via ssh

I want to send some specific files from my linux PC to my android device. I'd like to send it automatically using terminal commands, so there will be no drag and drop files. I don't know what is the ...
4
votes
1answer
1k views

sshd on CyanogenMod 13 Nightly failing without explanation

I've been trying to setup sshd on CM13, which seems straightforward enough, but doesn't seem to want to work. I followed the Wiki article Doc: sshd, but when I run the 99sshd script it produces the ...
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. ...
3
votes
4answers
3k views

How to run an SFTP server on my CM9 RC2 Galaxy Nexus

I want to run an SFTP server on my GSM Galaxy Nexus (Cyanogenmod 9 RC2). I plan to connect to the Galaxy Nexus from a Kubuntu 12.04 PC via USB cable (not wireless). It is my understanding that ...
3
votes
2answers
5k views

How can I create a key par for sgit?

I'm trying to use sgit to connect to a remote repository. It has a screen to "Manage Private Keys," but it doesn't seem to include a key generator. Instead, it lets you browse the file system, so ...
3
votes
1answer
4k views

Performing key combinations in connectbot?

Does anybody know how to perform key combinations in ConnectBot? Examples: Ctrl+Z Ctrl+F2 Ctrl+Alt+Del
3
votes
1answer
613 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 ...
3
votes
1answer
130 views

Send a notification (or just vibrate) to phone via ADB/shell

I would like to be able to send some kind of notification to my android using a remote shell script (SimpleSSHD running as root, so basically the same as an adb shell). On an iOS device I can use the ...
3
votes
1answer
608 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?