SSH devices
setting up github ssh
generar llave
ssh-keygen -t ed25519 -C "your_email@example.com"
probar con estos comando
ssh -T git@github.com
ssh -i .ssh\id_ed25519 -T git@github.com
en windows al generar una llave en powershell siempre me daba error de permisos 'too open'. pero el mismo archivo en git bash me funcionaba.
lo que hice fue generar la llave en WSL, asimismo el archivo se guarda en ~/.ssh de wsl y usa el ssh agent de WSL.
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