To change the filename, define a new filename in the destination: scp test.txt example copies the test.txt file from the local machine, then save it as user1test.txt in the user directory of the destination system. txt files into username2’s home directory, enter the following: scp *.txt you only specify the destination directory, SCP will leave the filename as-is. If you are in your /home/user directory, and you want to copy the test.txt file to the server, you can enter the following: scp test.txt copy all. Typically, you do not need to specify the location for a file in your current directory. You can specify a string of text with the *sign.įor example, /~/*.txt would direct SCP to copy all files in the home directory that end in. Use the tilde character ~/ to stand for the user’s home/user directory. The scp command allows the use of wildcards. How to Securely Copy Files Using SCP Copy File From Local to Remote Server with SCP A secure shell login on the server system.(optional) Root access on both the client and server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |