Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a executable in another process without creating a new process

Tags:

c++

c

linux

windows

I want a write a program that run an executable image without creating a new process... I want to do this because I want to use plink that send a password to a remote ssh server...

The plink program sends the password provided in command line .. If I use fork and exec functions someone can see the password provided in command line using process explorer or ps -aef or cat /proc//cmdline .. How to avoid this security hole..and this program has to be run on both linux and windows ..

like image 845
suresh Avatar asked Dec 31 '25 19:12

suresh


1 Answers

Set up your SSH server to use RSA public/private key authentication instead of passwords. This is usually a better choice anyway for SSH in general. See http://www.google.com/search?q=set+up+ssh+rsa.

like image 92
We Are All Monica Avatar answered Jan 02 '26 10:01

We Are All Monica



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!