Get free live demo
Login
Cart
Home
Home
What is VisualCron?
Why choose VisualCron?
Our customers
Testimonials
Search
Social
Technology
Features
GENERAL
Features
Screenshots
API / SDK
Technology
ARCHITECTURE
Tasks
Triggers
Connections
AUTOMATION
General automation
Task Scheduler
FTP / SFTP/ SCP automation
Batch and exe automation
PowerShell automation
Cloud automation
Business Process Automation (BPA)
Encryption automation
SQL / database automation
Web macro recorder automation
Robotic Process Automation (RPA)
Managed File Transfer (MFT)
Extract Transform Load (ETL)
PDF automation and data extraction
XML automation and manipulation
Image automation and manipulation
Office 365, Excel and Macro Automation
Sharepoint automation
Archive automation
Virtual Machine Automation
Document scanning / OCR
ABOUT VISUALCRON
VisualCron is an
Automation
,
Integration
and
Task Scheduling Tool
for
Windows
.
Get free live demo
Download
Download
Change log
Requirements
Get free live demo
Order
Order
License guide
Choosing the right license
Basic vs Pro edition comparison
Cart
Get price quote
Use PO / get invoice
Return policy
Company information
Reseller information
Partners
Get free live demo
Support
Community forum
Documentation
Video tutorials
Maintenance & priority support
Contact us
Get free live demo
My pages
Start
My profile
My contacts
My licenses
My cloud Servers
My orders
Blog
Site map
Community forum
Support
Community forum
Please note that VisualCron support is not actively monitoring this community forum. Please use our
contact page
for contacting the VisualCron support directly.
Welcome Guest! To enable all features please
Login
or
Register
.
×
Forum
Search
Login
Register
Login
×
User Name or E-Mail Address:
Password:
Caps Lock is on
Remember me
×
Forum
Support
General problem solving
SSH Remote Execution sudo or su
SSH Remote Execution sudo or su
Previous Topic
Next Topic
Tools
Email this topic
Watch this topic
Print this topic
Christophe Pelichet
Paid support
Topic Starter
2022-06-30T08:42:32Z
#1
Hello community,
I'm new here and I'm testing the software and I was wondering if it was possible for a remote task on a server via ssh to pass password via a secure parameter to execute a task in sudo ?
Thanks in advance for your help.
CP
Quick Reply
Reply
View All Posts by User
Sponsor
Forum information
Wanna join the discussion?!
Login to your Forum forum account
or Register a new forum account
×
Pavel Shalamitski
Official support
2022-06-30T14:41:21Z
#2
Hi!
You can try using this trick via Send Text command (per link)
echo -e "YOURPASSWORD\n" | sudo -S yourcommand
Quick Reply
Reply
View All Posts by User
Christophe Pelichet
Paid support
Topic Starter
2022-07-06T08:51:37Z
#3
Hello Pavel ,
I thought about this solution but I was wondering if there was a more "secure" solution than writing a password in plain text in a command line.
In any case, thanks for your answer
have a nice days.
Quick Reply
Reply
View All Posts by User
Luke Saunders
Paid support
2022-07-20T21:26:15Z
#4
I have 50+ linux servers that I manage various upkeep using VisualCron. I set up a service user on the VisualCron server, then set up Putty connections to all those linux servers under that user account using a passwordless ssh key in /root/.ssh/authorized_keys on all the linux servers. Then you can use the plink.exe utility that comes with putty to run batches of commands as root.
I've attached a screenshot of the execute task. I'm looping over a list of servers in a Job Variable. The list of servers match the connection names in the Putty profile. The batch commands are stored in text file saved into another Job Variable so you can swap the batches of commands in one place. You need local login+load profile for the Putty profiles to be available to plink. Hopefully this helps.
Quick Reply
Reply
View All Posts by User
Similar Topics
Remote execution
(
General problem solving
) by
Support
2011-03-11T15:54:35Z
Remote Execution to Copy Files
(
General problem solving
) by
Support
2019-05-28T10:27:53Z
Remote execution issue
(
General problem solving
) by
Support
2017-02-14T17:20:16Z
Visual Cron Remote Execution
(
General problem solving
) by
Support
2014-02-25T12:17:32Z
Remote VisualCron Server Execution Context
(
General problem solving
) by
Support
2018-12-14T11:02:50Z
Users browsing this topic
Guest
Forum
Support
General problem solving
SSH Remote Execution sudo or su
© VisualCron
Scroll to Top