Copy file to Server to Local
scp -P <port> <localfile path> <server user>@ip:<remote user home path>
ex: > scp -P 22 mq/target/test.jar drvijay@192.2.2.2:/home/drvijay
Connect server :
ssh -p <port> <server user>@<IP>
ssh -p 22 drvijay@182.2.2.2
Copy file from Server to Local
Note: ssh -p <port> small case for port option
scp -P <port> upper -P for port specify.
No comments:
Post a Comment