Backup IBM Qradar 7.4.2 file to IBM AIX 7.2

# from QRadar EP terminal

ssh-keygen -t rsa

ssh-copy-id user@AIX. # not work

## then we try to use expect program method

# touch scp.exp and input content of follows 

#!/usr/bin/expect

set filename [lindex $argv 0]

spawn scp  -r $filename user@AIX:~

expect {

 "(yes/no)?" { send "yes\n"}

 "*password:" { send "yourpass\n";exp_continue}

}

interact

expect eof


#touch backup.sh

for filename in $(ls *) do

./scp.exp $filename

done


這個網誌中的熱門文章

取消Excel與word網際網路與網路路徑超連結自動格式

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)