Introduction |
The Ubuntu system is one of the Linux systems commonly used by enterprises and individuals. Due to its good graphics support and good development tool support, programmers prefer the Ubuntu series system. Recently, I helped a friend's company solve a problem and used a virtual machine to create an Ubuntu test environment. I found that Ubuntu's default security level and remote tools were not set. Next we will install the ssh service and then enable root permissions (not recommended) |
System environment
Our system uses the virtual machine vmware workstations 12 version Ubuntu17.04 for experiments:
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343023990.png)
Install ssh service
Check network connectivity
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343033230.png)
Upgrade the installation source (required for first time use)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343033005.png)
Install ssh service
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343016193.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343077156.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343052382.png)
Start ssh service
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343062209.png)
Check the ssh service startup status
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343050178.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343094945.png)
Set up the ssh service to start at boot
Try to use chkconfig to set up ssh startup
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343165859.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343178804.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343182929.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343134126.png)
systemctl Sets the ssh service to start at boot
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343111009.png)
Modify the ssh configuration file and enable root user login
View IP and try to log in remotely
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343171848.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343179315.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343175117.png)
ok, ordinary user login successfully. Let's try switching to root.
Switch to normal user
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343192180.png)
Change root password
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343140966.png)
Try to log in to the system as root user
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343297740.png)
Modify the ssh configuration file and enable root login
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343224896.png)
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343261036.png)
Use root user for root login
![Ubuntu 系统远程设置](https://img.php.cn/upload/article/000/465/014/170398343263950.png)
Original address of this article: https://www.linuxprobe.com/ubuntu-start-sshd.htmlAuthor: Tao Wujie, Reviewer: Pang Zengbao
Original address of this article: https://www.linuxprobe.com/ubuntu-start-sshd.htmlEditor: public, reviewer: None
Recommend some articles related to this article for you:
- Russian military’s GNU/Linux distribution: Astra Linux
- FreeBSD 11.3 officially released
- How to watch Nyan Cat on the Linux command line
- "Cloud Native Java: Spring Boot, Spring Cloud and Cloud Foundry Elastic System Design" pdf e-book free download
- "Illustrated TCP/IP" Free download of pdf e-books
- Bitwarden officially acquires open source startup Passwordless.dev
- zabbix exploits high-risk SQL injection vulnerability again, gaining system permissions
- Node.js: easy development Web application artifact, quick installation tutorial decryption
- IMAX is about to launch IMAX Enhanced certification
- "Computer Graphics 4th Edition" pdf e-book free download
The above is the detailed content of Setting up remote access to your Ubuntu system. For more information, please follow other related articles on the PHP Chinese website!