We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scp is a tool like cp in linux.The different is,scp copy file between PCs.
A~: scp -p file1 username@B's IP : ~/file1 eg: scp -p test.txt [email protected]:~/tset.txt
here -p measn to preserve the modify time ,access time,mode from original file.
A~: scp -pr dir1 username@B's IP : ~/dir1 eg: scp -p test_dir [email protected]:~/tset_dir
here -r means copy a directory
other option see :
man scp
on the above step,each scp need you offer the password of the target PC. Now there is a way to avoid the password step: by ssh certification.
in PC A: ssh-keygen -t rsa scp ~/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
the same for B->A
The text was updated successfully, but these errors were encountered:
No branches or pull requests
usage of scp
scp is a tool like cp in linux.The different is,scp copy file between PCs.
copy a file1 from A to B:
here -p measn to preserve the modify time ,access time,mode from original file.
copy a directory from A to B
here -r means copy a directory
other option see :
scp without password
on the above step,each scp need you offer the password of the target PC.
Now there is a way to avoid the password step: by ssh certification.
A -> B whithou password
the same for B->A
The text was updated successfully, but these errors were encountered: