• Post Reply Bookmark Topic Watch Topic
  • New Topic

How I connect to remote server(linux) from standalone java application?  RSS feed

 
Shiv Modi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am new to java. I have got a task to develop an desktop application which would get inputs as host, username and password from the end user(through graphical interface), will connect to remote server and would get/upload files from there using ssh. Can you please help me what to use for that and how it would work.

Thanks in advance
 
Tim Moores
Saloon Keeper
Posts: 4036
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSch and Ganymed are popular libraries for implementing SSH in Java.
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Shiv Modi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Campbell and Tim.

Can you please let me know one more thing. If i can access second level authentication with JSch. For example if i am logged to server as normal user and then i need super user access. So if i can access super user after connecting to server as a normal user?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!