You may get an error while trying to connect scp

# scp -P 2350 root@192.168.0.20:/root/filename.txt /root/.

root@192.168.0.20's password:
/etc/profile.d/krb5-devel.sh: fork: Cannot allocate memory

Solution :

check the file krb5-devel.sh in /etc/profile.d/ directory If it's not available in some cases, make a new file : krb5-devel.sh
 
# cd  /etc/profile.d/

# vi krb5-devel.sh

Add the below script to that file,

if ! echo ${PATH} | /bin/grep -q /usr/kerberos/bin ; then
        PATH=/usr/kerberos/bin:${PATH}
fi
if ! echo ${PATH} | /bin/grep -q /usr/kerberos/sbin ; then
        if [ `/usr/bin/id -u` = 0 ] ; then
                PATH=/usr/kerberos/sbin:${PATH}
        fi
fi

Now, you can try to connect with SCP .