Linux - Command : ssh

来源:互联网 发布:淘宝助理中通大头笔 编辑:程序博客网 时间:2024/06/11 16:36

With the ssh command you can log in to a remote computer and work on it remotely. That is, it enables you to connect to another computer on the Internet, that could be physically located anywhere in the world, and open a window on your local machine that lets you run programs interactively on the remote machine.

For example the following command would be used to login to a computer with the network id "1.x.net":

ssh chimomo@1.x.net
assuming "chimomo" is the username of the account we are tying log into on this machine. The system will ask you for the password before you get the prompt that allows you to run programs on the remote computer.

If the user name of the remote machine is the same as on the local machine you can omit the user name:

ssh 1.x.net

You can also use ssh to run a command on a remote machine without login in. For example,

ssh chimomo@1.x.net ls
will execute the command "ls" on the computer " 1.x.net" and show the results in your local window.
1 0
原创粉丝点击