Friday, June 26, 2015

How to execute/run a command from remote server in Linux/Unix

How to execute/run a command from remote server in Linux/Unix
==================================================

Syntax: 
ssh username_of_remote_server@remote_hostname/remote_hostipaddr -- <Command to execute on remote server>

ssh root@192.168.1.11 -- /sbin/ifconfig -a

No comments:

Post a Comment

TCP/UDP Protocols/Prots & important port numbers in Linux OS

TCP/UDP Protocols/Ports are ranging from 0-65535 so total we have 65536 ports & because of the limitation in TCP/IP stack where the por...