SSH devices
Set up on Windows
go to Apps & features
> Optional features > make sure OpenSSH client/server is installed > go to or run services.msc > OpenSSH server service and set it up for automatic run on boot or whatever I want (or run command Set-Service -Name sshd -StartupType 'Automatic'
).
If ssh Server is installed but not running, the run command is Start-Service sshd (powershell)
Optionally If I have windows linux subsystem I can probably ssh into that and use the more familiar bash terminal commands
-
pampara:
ssh user@192.168.56.1 1234
-
ubuntu subsystem:
ssh user@172.18.62.165 1234
-
phone:
ssh <user>@<ip> - p 8022
(I think the port flag is optional)
ips: 10.0.0.131 127.0.0.1 users: u0_a594 or root -
tablet: ssh
setup on android
- install termux
- apt get or
pkg install openssh
ssh key generated at data/data/com.termux/files/usr/etc/ssh/ssh_host_rsa_key - start ssh daemon service with
sshd
- run
nmap localhost
andwhoami
to figure out port and user.ifconfig
to get ip of phone (inet) passwd <user>
to change the password for user
the ssh port on the phone should probably be on port8022/tcp oa-system
copy files over
scp
command
scp RemoteUser@192.168.56.2:C:/Users/Administrator/Desktop/test.txt Desktop
copies a fiel from remote desktop to local desktop
or vice versa scp hello.txt RemoteUser@192.168.56.2:C:/Users/Administrator/Desktop/hello-copy.txt