Hello,
I have a file say /a/b/c/file in my host. I want to create a file on remote host in directory say dest. Now the question is, how do I create a file in remote host as /dest/a/b/c/d/file using perl script and using ssh. Any idea how do I create directories in script.?
Thanks.
...
Hi,
I have a list of files on host machine say in directory /src/.
The directory has more subdirectories. now this directory is copied onto remote machine after mounting. Now the files are preset in remote machine in directory /dst.
Example. If I had /src/a/f1, /src/b/f2
I will have on remote machine /dst/a/f1 ,/dst/b/f2
Now I only ha...
Hello,
I have a script in remote host which I run as ./test /a/b/c/f and it runs perfectly fine on the maching.
Now I am on host machine, I run the same script as ssh root@dst "./test /a/b/c/f" and this too runs fine.
But from my perl script I execute it using backticks as
$file = "/a/b/c/f";
`ssh root\@dst "./test $file"`;
or
sys...
Hi,
I want to run a shell script which contains ssh command to run through a php web page. The shell script executes, but skips all the ssh commands. Is there a way to do this.
Thanks
...
Can anyone tell me the best way to encrypt data between a CI application and a MySQL db hosted on separate servers. SSH tunnel? If so, has anyone gotten this working using CI? Code examples and/or links are welcome.
...
I am using the nice http://www.jcraft.com/jsch/ library - however when I run some commands (seems to happen to a wide variety) I see that jsch returns a getExitStatus of -1, from time to time, even though the script ran fun (when I run it by hand it is consistently a successful 0 exit code). Any ideas?
...
For many months, I have been logging into my remote servers through a tunnel on my Windows machine. Pretty standard: I log in through putty using the designated port 3306, then I open up MySQL Admin tool (or query tool) and log into 127.0.0.1:3306
I've been trying to set this up on my Mac and I get this error when I try to log into the...
I have two servers, and one updates with a DNSBL of 100k domains every 15 minutes. I want to process these domains through a Python script with information from Safebrowsing, Siteadvisor, and other services. Unfortunately, the server with the DNSBL is rather slow. Is there a way I can transfer the files over from the other server with SS...
I have a git repository on Unfuddle, and a Windows machine I'm using with msysgit. I set up an SSH key on that machine using ssh-keygen, which gave me some key files. I copied the contents of the public key file into my personal settings in my Unfuddle account, and that works fine.
So what do I need to do to get it working on a second...
I have git and gitosis running smoothly on windows with msysgit (with OpenSSH),
and I would now like Hudson to start using git.
So, I have ensured that the hudson windows service is running as the
hudson user, and I have added the hudson user through gitosis-admin.
I also have unixutils, and they are in the windows path.
But, Hudson ...
Howdy,
I've written a python script which does some curses and pysqlite stuff, but I've noticed that in occasions where I've been running this script over ssh when that ssh session is killed for whatever reason the python script doesn't actually exit, instead it ends up as being a child of init and just stays there forever. I can't kill...
Hi y'all
I'm using ssh (plink) to execute a process on a remote server:
The command works just fine, However the remote process is started in the background, with no console application.
I need the process to be executed in a new console window.
Any ideas?
Regards
...
I have 17 gigs of images directly on my server that I would like to move to S3. First I tried to scp them and it it took roughly 9 hours, so that doesn't seem to be a good idea to use those because other people have probably touched those images since then. I'm thinking something similar to rsync, but rsync wouldn't work because I can't ...
I have to write test for deployment script which uploads files through SSH, but I'd like to have it not depending on external servers configuration. This is how i see it:
Create 2 SSH daemons without authenication on different ports of loopback interface.
Run the deployment script on these two ports
The only question is how to run th...
I have been developing a project in python for the last six months, and love the language. But I have yet to find an IDE or text editor that could provide some extra functionality for me. I currently have syntax highlighting which is one of the easiest things to get, but not much more. I am dreaming of having my IDE jump to the line in m...
I have msysgit installed with OpenSSH option. In Git bash, I can run ssh-agent, and it manages the passphrase for my ssh key. Is it possible for the Hudson Git plugin to use ssh-agent? Currently, it hangs when trying to clone, no doubt waiting for the passphrase to be entered.
Thanks!
...
I have a commercial product that allows users to connect to various SSH end-points. Currently these users are forced to download and use Putty... Seems pretty straightforward, except that my SSH end-points require RSA/Private Key authentication. So now connectivity to these end-points is becoming a pain, because I need to explain to my u...
Is there an inbuilt C# mechanism to convert PEM files to PPK files? (you may guess that Amazon EC2 gives me a PEM file, and I need to use the PPK format for SSH connectivity).
...
I have a Rails (2.3.8) application that will need to start and maintain a SSH tunnel whenever the application is started using 'script/server' or when started using Passenger. When script/server is ^C'd or the Passenger instance is shut down the SSH tunnel should be destroyed.
I do not want the tunnel to be started when I run 'script/co...
I am trying to pass login details to different machines through ssh in a shell script. Even though I have used a for loop, I am ending up sending all the login information to all the machines. Can someone please help me with this?
for system in ${allSystems}
do
machine=`echo $system | awk -F ";" '{print $1}'`
use...