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
==================================================
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