50字范文,内容丰富有趣,生活中的好帮手!
50字范文 > openssh for android android安装openssh 通过其他电脑ssh登陆到安卓手机

openssh for android android安装openssh 通过其他电脑ssh登陆到安卓手机

时间:2021-10-04 02:36:34

相关推荐

openssh for android android安装openssh 通过其他电脑ssh登陆到安卓手机

原链接:

With the brilliantTermuxterminal emulator app you can run an SSH server on your Android.

Perviously I usedSSHDroidto achieve this, but with Termux is much nicer because you have access to a working package manager.

Run the service

You neet to install the OpenSSH package

apt install openssh

and use following command to start the ssh server.

sshd

And there you go. Your ssh service is now running on port 8022.

ssh localhost -p 8022

Adding your Public key

You can do password authentication in Termux, therefore you need to put your OpenSSH public key into the ~/.ssh/authorized_keys file.

This file will need to be created and permissions set to 600.

touch ~/.ssh/authorized_keys

# Set Permissions to the file

chmod 600 ~/.ssh/authorized_keys

# Make sure the folder .ssh folder has the correct perm

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。