This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sftp> help | |
Available commands: | |
bye Quit sftp | |
cd path Change remote directory to 'path' | |
chgrp grp path Change group of file 'path' to 'grp' | |
chmod mode path Change permissions of file 'path' to 'mode' | |
chown own path Change owner of file 'path' to 'own' | |
df [-hi] [path] Display statistics for current directory or | |
filesystem containing 'path' | |
exit Quit sftp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From client machine : | |
ssh-keygen -t rsa | |
Create .ssh in remote server fron client : | |
ssh [email protected] mkdir -p .ssh | |
Upload key : | |
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' | |
Set Permission : | |
ssh [email protected] "chmod 700 .ssh; chmod 640 .ssh/authorized_keys" | |
Connexion without password : | |
ssh [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing mailx | |
yum -y update | |
yum install -y mailx | |
We can now start sending e-mails using | |
create a symbolic link | |
ln -s /bin/mailx /bin/email | |
###Set an External SMTP Server to Relay E-Mails |
OlderNewer