SSH server management and use Termux

××××××××××××××××××××× SSH server installed and used ×××××××××××××××××××××
MobaXterm common login is SSH server, the terminal can be set up on the SSH server Ubuntu
the sudo APT-GET Update
the sudo the install OpenSSH APT-GET-server
-Service Start the sshd
/etc/init.d/ssh Start
the sudo SSH-Service Status  
the sudo-Service SSH STOP / the restart
 
Ubuntu open Telnet server
sudo apt-get install openbsd-inetd APT-GET or the install xinetd the sudo
the sudo APT-GET the install the telnetd
the sudo /etc/init.d/openbsd-inetd the restart
 
similarities of ssh and telnet:
1. two protocols are telnet another host
2. both protocols are all based on protocol TCP / IP is
a different point of ssh and telnet:
1.telnet is expressly transmission; ssh is encrypted transmission, compression and support.
2.telnet default port number is 23; the default ssh port number is 22. The
3.ssh user access to the server's public key to verify the identity, to further improve the security; telnet does not use the public key.
 
Android devices can log on SSH server installed JuiceSSH, Ipad you can install Termius
##### SSH server command line login
SSH -p 22 [email protected]
##### SSH server configuration changes
vi / etc / ssh / sshd_config
Modify the default parameters and can be uncommented if the port is not available, running SSH will show not
##### to the remote SSH server file transfer
scp -P 8022 ./file [email protected]: / home / -r
 
an IP SSH server is more than a public
build server Ubuntu Android phones
to download and install the APP Termux
######### install SSH
pkg install OpenSSH
######### password
passwd
×××××× ××××××××××××× Termux configuration and use ××××××××××××××××××××××××××××××
### ## Termux reliable source (containing multiple kernel architecture)
http://mirrors.ustc.edu.cn/help/termux.html
https://mirrors.ustc.edu.cn/termux
##### update source
pkg Update
##### repair corrupted files (source not available)
Broken --fix the install-APT
PKG upgrade
######### installed Vim
PKG the install Vim
######### installed Git
PKG the install Git
##### start the SSH
the sshd
##### Close SSH
busybox PS | grep SSH
the kill -s 9
×××××××××××××××××××× Ubuntu install and configure ××××××××××××××× ××××××××××××××××××××
##### install wget, PROOT, git
pkg install wget PROOT git
##### Ubuntu version by downloading the file and install
git clone https://github.com/MFDGaming/ubuntu-in-termux.git
##### version of the file by wget to download and install the (pro-test available)
wget https://raw.githubusercontent.com/Neo-Oli/termux -ubuntu / Master / ubuntu.sh
##### install ubuntu
bash ubuntu.sh
##### start ubuntu system
./start-ubuntu.sh
************************************************** *************************
* the installation is Ubuntu streamline the system, need to install a variety of tools, but the source is arranged outside the network source address *
* and the system without editors to modify configuration files, so you can replace the link address and relative directory using the sed command *
* View Disco * Ubuntu version 19.04
****************** ************************************************** *******
##### View software update source
CAT /etc/apt/sources.list
RAW system also need to modify the DNS configuration file, otherwise the newspaper "Temporary failure resolving" error
##### add a domain name server address
CAT /etc/resolv.conf
sed -i "S / 1.1.1.1/# nameserver nameserver 1.1.1.1/g" >> /etc/resolv.conf
echo "nameserver 114.114.114.114" >> /etc/resolv.conf
echo "nameserver 8.8.8.8" >> / etc / resolv.conf
##### to install the ping
APT-GET-install the ping inetutils
##### network installation tool
APT-GET install NET-Tools
 
This System has been Minimized by Removing Packages Standard Package and Content that are
not required ON A System that the Users do not log INTO.
 
××××××××××× ×××××××× Linux common commands ×××××××××××××××××××××××××××××××××××
#### ## Linux view the DNS configuration
nmcli dev Show
###### View Ubuntu version
CAT / etc / Issue
##### core edition
CAT / proc / version
uname -a
###### users to quickly create
adduser name
###### delete users and their files
userdel -r name
###### user switching
su name
######
netstat -tulnp
######
du -h -d 1

Termux use of experience: Termux installed on android phone can set up a simple Linux server, but function more restrictive, and the real SSH server is quite different; In addition, Termux basis installed Ubuntu, the need to log Termux every time a user runs Ubuntu startup script, also cut version of Ubuntu, and not be able to run multi-user like a real person as Ubuntu server.

Published 34 original articles · won praise 59 · views 50000 +

Guess you like

Origin blog.csdn.net/qq_34041083/article/details/104720142
Recommended