On Fedora, output from scripts such as /etc/rc.local and cron jobs are encoded and attached as attachment.bin even if they seemingly are plain text.
The problem is with carriage returns. I tried using "dos2unix" but that may not remove them all. If that happens put this into the pipeline
command | tr -d '\r' | mail -s .....
Tuesday, April 21, 2009
Sunday, April 19, 2009
Passwordless login using SSH
To login to machine b from machine a:
On machine a run 'ssh-keygen -t rsa'
Hit return for the passphrase (leave it empty)
Copy id_rsa.pub to b:.ssh/a.key
Login to machine b
cd .ssh
cat a.key >> authorized_keys
On machine a run 'ssh-keygen -t rsa'
Hit return for the passphrase (leave it empty)
Copy id_rsa.pub to b:.ssh/a.key
Login to machine b
cd .ssh
cat a.key >> authorized_keys
Subscribe to:
Comments (Atom)
