Assume that the server IP is 61.145.34.33, the port number of the ssh service is 9186, and there is a user on the server named sshuser;
The command to log in to the server using ssh is:
>ssh -l sshuser 61.145.34.33 -p 9186
After pressing Enter, if this is the first time you log in, you will be prompted with an authentication message. Just type yes, and then enter the password of the server sshuser to log in;
The command to log in to the server using sftp is:
>sftp -oPort=9186 [email protected]
After pressing Enter, enter the password of the server sshuser to log in, and then an sftp> environment will be displayed. At this time, type help and you will see help for all commands, which is very similar to the ftp command line tool, such as get, put, etc.