Assume you have two apps nodes, both files system own by operating system user applmgr.
1. generate public and private keys in you loacl host
-bash-3.2$ ssh-keygen
2. Copy the public key to remote server
-bash-3.2$ ssh-copy-id -i ~/.ssh/id_rsa.pub remotehost.mydomain
example to shutdown apps in remote server(from you localhost)
ssh remotehost.mydomain '. .bash_profile; $ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps'
using ssh with rsync
rsync -av -e ssh /source user@remoteserver:/target
No comments:
Post a Comment