Enabling the ssh service in ubuntu is a simple task. First install sshserver: sudo apt-get install openssh-server. Generally, the service process is automatically started after installation. You can check whether the process is Enabled: ps-A | grep ssh. If the sshd process exists, this indicates that the service has been enabled. Generally, the default port is 22. in linux, everything can be configured by the user, not to mention the ssh port, directly use the root permission to open the/etc/ssh/sshd_config file and modify the port information. Then restart the service and run the following command to restart the service: sudo/etc/init. d/ssh restart; another important operation is to shut down the service. Otherwise, it will always be open for access. Haha, the command is similar to restart: sudo/etc/init. d/ssh stop; if there is a command to disable the service, of course, there is a command to enable the Service, otherwise it will not be enabled after the command is disabled, so: sudo/etc/init. after configuring d/ssh start, you can test whether the system can be accessed. First, check the ip address of the current system. if I believe the config command will be okay. After finding the ip address, for example, accessing in windows, downloading a putty, and then entering the ip address and port, the port is clearly stated above, the default value is 22. You can modify it by yourself. The connection method is ssh. After you select the connection method, the user name and password will be required. For this user name, check whoami, what a proper name is: Who am I? Remember the password. This completes the windows ssh connection to ubuntu.