Ssh - menjalankan perintah secara remote

From OnnoWiki
Revision as of 07:43, 16 December 2018 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

contoh

ssh user1@server1 command1
ssh user1@server1 'command2'
ssh user1@server1 'command1 | command2'
ssh user1@server1 date
ssh user1@server1 'df -H'
ssh root@nas01 uname -mrs
ssh root@nas01 lsb_release -a
ssh -l remoteuser remoteserver.com 'mkdir .ssh'
ssh -l remoteuser remoteserver.com 'touch ~/.ssh/authorized_keys'
cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys'


Pranala Menarik