I've serched a lot for this operation, couldnt get hold of anything great.
My requirement is that, I would like to connect to a remote machine by passing its Hostname, UserID, Password to the program.
Once it is connected, it should be able to perform file operations like read, write, copy, etc.
When serached for the articles in Google, all I could find was fetching the data from ftp URL, accessing the file using JCIFS libraries if the same are in samba shares.
In my scenario, the files just belong to remote machine and also not shared.
Your assistance will be highly appreciated.
If the files are not shared, the only way to get them is through an application running on the remote machine, like an FTP server. You could even write the server yourself, with your own protocol. Just make sure to use proper encryption like Transport Layer Security.
Thanks for the response...!!!
However I am working from within a network wherein we cannot start the FTP servcies on certain servers.
Hence, can you suggest any other alternatives than accessing it through FTP?
Stephan van Hulst
Joined: Sep 20, 2010
Like I said, you can write your own server using a custom protocol (not necessarily FTP). This can be pretty simple, just make sure you don't compromise sensitive user data.
James Sabre wrote:
Can you open an ssh session to these servers?
Yes. I can.
However I suppose that ssh can be done only to a linux machine. Please advise if otherwise.
The operating system is not really a factor. There are ssh servers for pretty much all OS but, of course, to be usable to use an ssh server it must be installed.
Also, please help me if you have some logic for the same.
Sorry I don't understand.
I've presently figured out the logic to run shell scripts using ganymed-ssh2 by which I can read and manipulate data in a remote linux machine.
However the same couldn't be used for a windows machine.
You don't say what sort of manipulation is required but as long as it is not complicated then I'm sure equivalent 'scripts' can be run on Windows.