We all know that shell commands can be easily executed under Linux. Can you execute shell commands on other computers on other computers? In fact, it is ok, the following small series will introduce you to the Linux remote control method of shell commands.
No 1.SSH password
# the local server performs (A machine): generating a key pair
ssh-keygen -t dsa -P & lsquo; & rsquo; -f ~/.ssh/id_dsa
# Remote server execution (B machine): Authorize the remote machine with the public key, first need to copy the local public key to the remote server, the remote machine is authorized , you can delete the public key
cat ~/.ssh/id_dsa.pub 》~/.ssh/authorized_keys
After the operation, the A machine can SSH to the B machine without password.
2. Execute specific commands
ssh [email protected] “/root/nginx/nginx-1.2.3/sbin/nginx -s reload”
It is the method of remotely executing shell commands from Linux. Through the method of this article, you can remotely execute shell commands on other computers, saving you time.
The Vi editor is a text editor for Linux. It is widely used in Linux systems. Many friends have prom
The iotop command in Linux is mainly used to display the hard disk IO, but the comm
We all know that most Linux system operations need to be completed using commands, but the commands
We all know that cgroups in Linux system can be used to manage cpu resources. Today, Xiaobian wants
How to run the compiler with root privileges under Linux?
How to deal with the dead loop of user state process under Linux
How to install and use Vsftp in Centos system
How to develop JNDI in Linux Jetty environment
Ubuntu system installation FFmpeg step
Ubuntu install libgdiplus error how to do?
Linux Leap Second problem program response response slow
Debian boot does not enter the graphical interface method
How to solve the problems encountered when Unix migration to Linux system training
How to use the expr command in Linux system
Intelligent Switching Win8 Input Method
How does the Windows system disable the system error reporting function?
Win7 system excel can not open how to do?
WinToUSB uses graphic tutorial
Win8 taskbar runs to the top of the screen how to restore it to the bottom
How to delete the 200M hidden partition created by Win7?