1. To copy to a different server with different username
(assumption ssh keys are already shared)
scp /path/to/source-file username@rem-server:/path/to/destination
2. To create a file and make an entry in single line
echo secret >> filename.txt
3. To execute a command in remote server via ssh
ssh user
@server "command1 options;command2 options"
No comments:
Post a Comment