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


這個網誌中的熱門文章

Upgrade php and httpd(apache) on CentOS 7

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