When you SCP to Checkpoint SPLAT firewall and get the error “lost connection”, this is what you may see
[server] scp log1.tgz admin@xx.xx.xx.xx:/tmp
The authenticity of host ‘xx.xx.xx.xx (xx.xx.xx.xx)’ can’t be established.
RSA key fingerprint is 33:ff:72:0d:d6:57:53:16:d6:60:da:7e:f8:61:71:a8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘xx.xx.xx.xx’ (RSA) to the list of known hosts.
admin@xx.xx.xx.xx’s password:
lost connection
To resolve this do the following
1. make sure the admin shell has been changed from /bin/cpshell to /bin/bash
chsh admin
Changing shell for admin.
New shell [/bin/cpshell]: /bin/bash
Shell changed.
2. create a new file “touch /etc/scpusers”
3. edit the file and add the users you want to allow for scp
example:
more /etc/scpusers
admin
4. restart the ssh service
service sshd restart
Related posts:
Doesn’t work for me. I am using SSH Secure Shell and the SSH Secure File Transfer. Even with the changes made above I am still unable to get into the file transfer portion.
tcpdump to check if the attempts reach the device, see /var/log/secure for any error messages, check the /etc/ssh/ssd_config file for any kind of restrictions.