Server 1 is connected to Server 2 via SSH.
We know this:
I can execute a command such as
" ssh server2 "cp -rv /var/www /tmp" "
which will copy the entire /var/www dir to /tmp. However inside of /var/www we have the following structure(sample LS output below)
$ ls
/web1
/web2
/web3
file1.php
file2.php
file3.php
How can I execute...
How can I connect to an SSH server in Java? I don't need/want a shell. I just want to connect to the SSH server and get the content of, say, file.txt. How can I do that?
...
Hi,
I am trying to create my public/private rsa key pair with msysgit
I run this command:
ssh-keygen -C "[email protected]" -t rsa
Everything looks fine, I have the message
Enter file in which to save the key (/c/Users/user/.ssh/id_rsa)
Then I have the confirmation:
Your public key has been saved in project.pub
But I can't acce...
I'm having trouble with Fabric not recognizing hosts that I have in .ssh/config.
My fabfile.py is as follows:
from fabric.api import *
env.hosts = ['lulu']
def whoami():
run('whoami')
Running $ fab whoami gives:
[lulu] run: whoami
Fatal error: Name lookup failed for
lulu
The name lulu is in my ~/.ssh/config, like t...
Hi,
I have an SVN repo that I want to change to work over SSH, but don't want to checkout again. I have added the appropriate tunnels, but when I go to checkout, it still goes over HTTP.
...
Hey!
When Using SharpSSh and the SshExec class, I can't get the RunCommand to work, it always returns an empty string. When I debug the SharpSsh library it returns -1 when it tries to read the command from a stream. It works when I use the sftp class in the same library, but that class doesn't support all the ftp commands I need.
Here ...
Hello,
I have a Web-Application running on Shared Hosting. I need to Update the Project and I don't have SSH. All the Best-Practice-Solutions so far for SHared Hosting included SSH.
So does anyone have experiences with deployment without SSH, not using manual uploading with FTP?
--dazz
edit: My dev environment is WinXP with XAMPP, I ...
I have a perl script, script.pl which, when run, does a fork, the parent process outputs its pid to a file then exits while the child process outputs something to STOUT and then goes into a while loop.
$pid = fork();
if ( ! defined $pid )
{
die "Failed to fork.";
}
#Parent process
elsif($pid)
{
if(!open (PID, ">>running_PIDs")...
Hi i have set up passwordless ssh set up and have perl call ssh -o "BatchMode yes" user@host "runMe.pl arg1 arg2"
runMe.pl calls matlab and the function run_online with the given args.
nohup matlab -nojvm -nodisplay -r "run_online('$imgfolder/$folder/', '$ARGV[0]$folder', '/homes/rbise/results/mitosis/$ARGV[0]/$folder/')" > out.txt < ...
Guys this is a question about python twisted ssh lib.
All sample code even production code I saw acting as a ssh client based on twisted.conch.ssh are all interacting with server in such a mode:
prepare some commands to run remotely;
define call backs;
kick off reactor then suspend for new feedback;
After the reactor.run(), I never ...
How can I find all the files that were created by a particular session using ssh?
Or search for files that were created/modified on a particular date?
...
Hi ,
i have an issue when i try to do the svn checkout.
i issued the following command on my ubuntu linux box.
svn checkout svn+ssh://example.com/var/svn/site/trunk
i faced the following error .
ssh: FATAL: Illegal -o parameter "ControlMaster=no"
svn: Connection closed unexpectedly
i am not sure about the error... Can any please h...
Hi, I have setup an SVN server on my hosting account. Users can check in and out, but they have access to my entire repository.
To give people access, I issue users a public key to my account and then I add a line into my "authorized_keys" file inside my ~/.ssh that looks like this:
command="/home/user/packages/bin/svnserve -t -r /home...
Hi,
I've been told that this is possible to do with PHP. I have my website and there is a selection box. I would like the options to be populated from the contents of a folder on an sftp server. Then upon click I would like to get the associated files and move them to my local machine. Are there any good tutorials on how to do this? I...
I trying to checkout about 400MB of images from svn using svn+ssh.
It is running extremely slow. (approx 3Kbytes/s)
I am using TortoiseSVN as the client.
The server is the standard svn server that comes with ubuntu.
Any ideas how i can debug this.
...
I'm messing around with Tamir.SharpSsh and wanted to see if it was possible to use it to implement a console SSH client fully in C#. I do not mean something like putty where it's actually running in it's own GUI, but something you could run directly from the windows cmd console.
The library is pretty great, except that it doesn't handl...
I'm looking for a way to implement SSH Dynamic Port Forwarding ('ssh -D') under Python. The problem is that it has to work under Windows, i.e., running SSH with popen/pexec/etc. won't work. Any ideas?
cheers,
Bruno Nery.
...
I've recently set up a mercurial repsoitory. All pusing is done via ssh. Currently only users with an LDAP account can push changes to the repository. However, given that when commiting to a local repository any commiter name can be used using the --user. It is possible to have the situation where a commiter name does not match the LDAP ...
I am struggling with the classic problem of typing password automatically in ssh, and like
everybody else I am stumbling in the dark regarding expect. Finally I cobbled together a script that kinda work:
#!/usr/bin/expect -f
# command line args
set user_at_host [lrange $argv 0 0]
set password [lrange $argv 1 1]
set timeout 1
# ssh c...
I'm using SharpSSH to connect to an SSH server and I've tried using both SshShell and SshExec.
I need to be able to take a series of commands and send them to the server in order, so SshShell doesn't really do what I need since I would have to wrangle streams the whole time and it seems that it would be a bit of a kludge. So I've tried ...