Posts

Showing posts with the label scp

File copy from local computer to remote computer using SCP

File copy from local computer to remote computer using SCP  first check  target computer  /etc/ssh/sshd_config  file first edit the sshd_config file to allow  sshd  to answer requests for ssh  uncomment   permit root login  "YES"  line   change NO to YES #PermitRootLogin no  PermitRootLogin yes # override default of no subsystems Subsystem       sftp    /usr/libexec/sftp-server Edit the /etc/rc.conf  with  sysrc  command bash sysrc sshd_enable= "YES" service sshd start   Now check if a firewall is blocking port 22,  either pf  or ipfw man ipfw  or  man pf ps aux | grep -i pf     # to check for firewalls working to block you.   ipfw list ipfw 100 add  tcp allow any to me 22   let me show you how to SCP with commands:   SCP example https://www.geeksforgeeks.org/scp-command-in-linux-with-examples/ Example...