scpでパスフレーズを一度しか入れない方法
#!/bin/bash eval `ssh-agent ` ssh-add ~/.ssh/id_rsa scp filesv03:/etc/samba/smb.conf smb.conf.filesv03 scp filesv04:/etc/samba/smb.conf smb.conf.filesv04 eval `ssh-agent -k`
#!/bin/bash eval `ssh-agent ` ssh-add ~/.ssh/id_rsa scp filesv03:/etc/samba/smb.conf smb.conf.filesv03 scp filesv04:/etc/samba/smb.conf smb.conf.filesv04 eval `ssh-agent -k`