Skip to content

Instantly share code, notes, and snippets.

@Front-line-dev
Last active November 5, 2020 15:41
Show Gist options
  • Save Front-line-dev/4b4edc1281a21639a6f2c05a65be72f2 to your computer and use it in GitHub Desktop.
Save Front-line-dev/4b4edc1281a21639a6f2c05a65be72f2 to your computer and use it in GitHub Desktop.
안드로이드에 ubuntu 설치 및 ssh접속

안드로이드에 ubuntu 설치 및 ssh접속

우분투 인스톨

플레이 스토어에서 andronix와 Termux 설치

Ubuntu 18 버전 XFCE 버튼 누르면 복사되는데 Termux에 붙여넣기 해서 설치한다

ssh 접속 가능하게 하기

https://docs.andronix.app/vnc/ssh-basics#ubuntu-18 참조

필요한 패키지 설치

apt install openssh-server nano -y

ssh 설정

설정 파일의 #로 시작하는 줄은 주석이기 때문에 그냥 Port 2222PermitRootLogin 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포트로 열린다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment