| CPUG | |
| The Check Point User Group | |
| A Resource For The Check Point Community. Fast. Useful. Independent. | |
|
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I am trying to setup the backup schedule to backup to a SCP server (Suse 10) from my NGX62 splat server. The backups keep failing - I've checked the messages file on the suse server and see: Mar 18 10:06:09 xxxx sshd[6166]: error: PAM: Authentication failure for username from x.x.x.x If I do a manual scp command using the same credentials I can copy files to the server. Any idea why it doesnt work through the GUI? |
| |||
| I've had similar difficulties using the web gui for configuring a scheduled backup. Try using the command line utility "backup" to configure: # backup --help usage: backup [-h] [-d] [-l] [--purge DAYS] [--sched [on hh:mm <-m DayOfMonth> | <-w DaysOfWeek>] | off] [--tftp <ServerIP> [-path <Path>] [<Filename>]] [--scp <ServerIP> <Username> <Password> [-path <Path>] [<Filename>]] [--file [-path <Path>] [<Filename>]] where: -d Show debug messages -l, --logs Back up log files -h, --help Show this help information -t, --tftp Transfer backup package to TFTP server -s, --scp Transfer backup package to SCP server -f, --file Specify local backup package filename -e, --sched Configure scheduled backup operation -p, --purge Purge local backup packages older than DAYS and check out /var/CPbackup/conf/backup_sched.conf |
| |||
| Still can't seem to get it to work. I've tried the following: backup -d --sched on 15:25 -m 13 --scp 10.1.2.3 test test When the job runs on my scp server I see: error: PAM: Authentication failure for test from server |
| |||
| I've tried a few more things but still cannot get it going. Can someone please confirm a few things. I've looked at the backup_sched.conf Is the password stored under SCP_PASSWORD encrypted. If I schedule the back up the password I entered appears garbled in the file? Not sure if its a bug but when I run" backup -d --scp 10.1.7.244 checkpoint checkpoint" the credentials is tries to logon to the scp server with are retrieved from the above .conf file and not as per the command line??? This is driving me crazy - can someone please post their command line they are using and maybe their .conf file as well. |
| |||||
| Quote:
Quote:
Quote:
Quote:
Quote:
HTH |
| |||
| Thanks for the tips. Still no luck though :( From the CP console I can ssh to my remote box - works fine. If I run "backup --scp 10.1.7.244 checkpoint checkpoint" the backup program starts and asks me for the password again and then successfully dumps to file to the remote ssh server. If I run it via the scheduler it still fails with the same "pam authentication error" - i don't think its the ssh server as I can ssh to it and the backup program without the scheduler seems to work. |
| |||
| Quote:
FYI I tried this from my R65 and R60 splat and was not prompted for a password in either scenario... Quote:
|
| |||
| maybe this solves your problem, it works for me. at the target machine: create a new user SplatBackup cd ~SplatBackup mkdir ~SplatBackup/.ssh chown -r SplatBackup ~SplatBackup/.ssh chgroup -r SplatBackup ~SplatBackup/.ssh at the fwmgmt (loged in as expert): copy the public root ssh key from the fwmgmt to the TargetMachine scp /root/.ssh/id_(rsa|dsa).pub SplatBackup@TargetMachine:.ssh/id_fwmgmt.pub at the target machine: su - SplatBackup cd ~/.ssh/ cat id_fwmgmt.pub >> ~/.ssh/authorized_keys Now the backup works from the web interface even when sceduled. The password for the backupuser at the fwmgmt can be anything but not empty, auth is done via the public key. |
![]() |
| Thread Tools | |
| Display Modes | |
| |