how to copy file from ssh code example
Example 1: copy ssh keys
pbcopy < ~/.ssh/id_rsa.pub
Example 2: copy file from linux to windows ssh
#Download pscp.exe
#./ at the end downloads the file into current directory
scp -P 22 Linux-User@Linux-IpAddress:Exact file path ./