플레이 스토어에서 andronix와 Termux 설치
Ubuntu 18 버전 XFCE 버튼 누르면 복사되는데 Termux에 붙여넣기 해서 설치한다
apt install openssh-server nano -y
설정 파일의 #로 시작하는 줄은 주석이기 때문에 그냥 Port 2222
와 PermitRootLogin yes
를 적으면 되긴 하다
Find and change the line #Port 22
to Port 2222
Find the line #PermitRootLogin prohibit-password
or #PermitRootLogin yes
and change it to PermitRootLogin yes
. If it is already PermitRootLogin yes
then you do not need to change anything.
Now when you are done with all the above steps press CTRL+X and then type Y and then press Enter
Now do ssh-keygen -A
and then ssh-keygen
press Enter Enter
Now we need to set password first. To set password type passwd and set any password.
Once this process is complete just service ssh start
to start the SSH server.
top 명령어가 반쯤 먹는걸로 봐서 완전하지는 않은 것 같다. ARM 아키텍쳐에 맞게 되어있는지도 궁금하다.
자꾸 터미널이 죽는것같으니 tmux를 애용하자
sftp가 안 먹으니 그냥 Termux의 sshd를 이용하는게 낫겠다
apt install openssh
하고 ssh-keygen
하면 8022포트로 열린다