Quote:
Originally Posted by Keith Hedger
very unsafe:
Code:
echo yourpasssord|sudo -S /path/to/command
|
When I test this using Putty I am still prompted for password.
To address some of the other Comments/Questions
Renci is a library you can import into Visual Studio that provides SSH capability to your VB App.
The system I am trying to pull the information from will actually be many systems that are fielded all over the world. They are not connected to the internet or any external network for that matter. The end users have no admin access and in fact cannot even access the OS interface itself. The system boots to a custom GUI to control items on its closed network. There is a LAN port that is used to connect a laptop for configurations and updates.
We have a requirement to pull information (logs, system configuration information, etc) from the systems periodically to review. We do not want to provide admin access to these systems to the end users because they do not need that for their day to day operations. The only thing they will need admin access for is to pull this information so my thought was to send out a laptop to the sites that they can plug into that configuration port, log in, double click an icon on the desktop, let the app pull all the info it needs, then they send the laptop back. Before you say that is going to be costly, it is far more economical that putting someone on a plane to fly all over the world for 20 minutes of work at each site.
I know it is possible as there is an app that does what I want but it only pulls about half of what I need.
Modification of the Linux box is difficult as the vendor is hesitant to make any changes because "it works the way it is".