Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to ssh in termux

apt install openssh
sshd
touch ~/.ssh/authorized_keys
# Set Permissions to the file
chmod 600 ~/.ssh/authorized_keys
# Make sure the folder .ssh folder has the correct permissions
chmod 700 ~/.ssh
ssh-keygen
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
# -i $PATH_TO_FILE/filename is only required if the id_rsa file is not ~/.ssh/id_rsa
ssh localhost -p 8022 -i %PATH_TO_KEY-FILE%/%NAME_OF_KEY%
Comment

PREVIOUS NEXT
Code Example
Shell :: curl post form 
Shell :: sublime text editor download for linux 
Shell :: git commands download 
Shell :: unknown error after kill: runc did not terminate sucessfully: container_linux.go:392: signaling init process caused "permission denied" 
Shell :: express js 
Shell :: create and switch to a branch 
Shell :: find only files linux 
Shell :: boost volume in ubuntu 18.04 
Shell :: remove trailing slash from nginx 
Shell :: how to check pyqt version 
Shell :: magento installer 
Shell :: nasm compile windows 64 
Shell :: docker compose install centos 8 
Shell :: run bash script linux with sudo password 
Shell :: docker image add tag 
Shell :: change wallpaper command line linux 
Shell :: linux update 
Shell :: ignore file git 
Shell :: get history command without line numbers 
Shell :: linux groups 
Shell :: jetpack compose 
Shell :: install mongosh 
Shell :: Push First repository 
Shell :: while bash one line 
Shell :: git add remote 
Shell :: install screen recorder linux 
Shell :: putty ubuntu 
Shell :: add ignored file to git 
Shell :: raspberrypi open port 
Shell :: remove .env file from git history 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =