The command is used in a script, so the user has ssh-public-key1 configured. Trying to restore using password authentication works, but with configured keys it returns 501-Permission Denied. Althorught login with SSH keys still works.
$ scp -v backup.conf <IP_FGT>:fgt-restore-config
debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering public key: RSA SHA256:6MS1v/a5+7rPjY9cM6Cd6AkiwzDx9R4wfj+3uXF/5tU /home/<USER>/.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 535 debug1: Authentication succeeded (publickey). Authenticated to <IP_FGT> ([IP_FGT]:22). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: pledge: network debug1: client_input_global_request: rtype firstname.lastname@example.org want_reply 0 debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: scp -v -t fgt-restore-config 501-Permission Denied debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK debug1: fd 2 clearing O_NONBLOCK Transferred: sent 3504, received 1976 bytes, in 0.1 seconds Bytes per second: sent 57751.3, received 32567.5 debug1: Exit status 0
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.