[JSch-users] SCP Change Remote Directory
Status: Alpha
Brought to you by:
ymnk
From: Edward P. <ep...@my...> - 2008-10-22 15:28:00
|
Hi, I am implementing a SF Project called JMrtools and I am trying to get SCP working like it does at the command line. I am currently having a questions about the remote side of the SCP connection My issue is that when sending the information to the remote server you need to remove all leading "/" so where do I do a change directory to the place I want to upload the file? Do I just do "cd /whereever/; scp -p -t" or is there a more elegant way of doing this? Or should I just drop SCP and go to SFTP? |