Environment: Ubuntu 8.10
I. Using SSH
1. Install the SSH server on the server to be logged on
$ Sudo apt-Get install OpenSSH-Server
2. Start ssh-Server
$ Sudo/etc/init. d/ssh start (or restart)
The following prompt indicates that the server sshd has been started:
* Starting OpenBSD Secure Shell Server sshd [OK]
3. log on to the server on another machine
$ Ssh-l kmust3205 192.168.0.150
You will be prompted to enter the password:
Kmust3205@192.168.0.150's password:
After you enter the logon password, the following error occurs:
Linux 3205-shenji 2.6.27-14-generic #1 SMP wed Apr 15 18:59:16 UTC 2009 i686
The programs encoded with the Ubuntu system are free software;
The exact distribution terms for each program are described in
Individual files in/usr/share/doc/*/copyright.
Ubuntu comes with absolutely no warranty, to the extent permitted
Applicable law.
To access official Ubuntu documentation, please visit:
Http://help.ubuntu.com/
Last login: Mon Jun 29 15:54:16 2009 from leo-laptop.local
Kmust3205 @ 3205-shenji :~ $
It indicates that the logon is successful, and the command prompt is also changed to the logged-on server kmust3205. Now you can operate the logged-on server like the local machine.
4. Note: in step 3, kmust3205 In the ssh-l kmust3205 192.168.0.150 command is the username of the server to be logged on, that is, the login name. The IP address of the server to be logged on.
Ii. Telnet mode:
1. Install xinetd telnetd
$ Sudo apt-Get install xinetd telnetd
2. Enable the xinetd service on the server
$ Sudo/etc/init. d/xinetd start (or restart)
A prompt is displayed, indicating that the startup is successful.
* Starting Internet Superserver xinetd [OK]
3. log on to the server from the client
$ Telnet-l kmust3205 192.168.0.150 (the format is the same as that of SSH)
After you enter the logon password, the following information is displayed, indicating that the logon is successful:
Linux 3205-shenji 2.6.27-14-generic #1 SMP wed Apr 15 18:59:16 UTC 2009 i686
The programs encoded with the Ubuntu system are free software;
The exact distribution terms for each program are described in
Individual files in/usr/share/doc/*/copyright.
Ubuntu comes with absolutely no warranty, to the extent permitted
Applicable law.
To access official Ubuntu documentation, please visit:
Http://help.ubuntu.com/
Kmust3205 @ 3205-shenji :~ $
Command Prompt to go to kmust3205 on the server.
Iii. SFTP remote login and file transfer
1. Open the SSH service on the server side
$ Sudo/etc/init. d/ssh start (or restart)
2. Connect to the server on the client:
$ SFTP kmust3205@192.168.0.150 (no need to talk about the format)
You will also be prompted to enter the logon password and enter the following command:
SFTP>
In this way, the SFTP service is enabled.Program , Input
SFTP> help
You can view help information. Write down two Common commands:
SFTP> put [local directory/file] [Remote Server Directory/file] (This command uploads files from the local machine to the server)
SFTP> get [Remote Server Directory/file] [local directory/file] (This command downloads files from the server to the local machine)
SFTP> quit exit SFTP Service
4. About logging on to Windows from Ubuntu
You can directly use the tsclient that comes with Ubuntu, that is, the "terminal service client". The GUI is easy to use.
You can also use rdesktop with the following command:
Rdesktop-u kmust3205-P ******* 192.168.0.150
-U followed by the user name
-P is followed by a password.