ssh

"Network connection closed unexpectedly" upon svn checkout

When I attempt to checkout: svn checkout svn+ssh://serveradmin%[email protected]/home/87292/data/svn/repository/trunk . I get this (unhelpful) error: svn: Network connection closed unexpectedly What's happening? ...

svn Merge Problem (3 levels of svn)

Hi all, I am new to use svn and the company in which I work uses three levels (I don't know whether this is a correct word to use here) of svn. I mean the developers are provided a working directory on a testing server. When we commit, it goes to the dev server. When a manager commits it from there it goes to production server. I am a d...

How can I connect to ORACLE DB through ssh tunnel chain (double tunnel, server in company network) ?

Hi, I have SSH access to 'public' server, which is also the gateway to company network. There is another server in the network, where local ORACLE server is running (There is no access from outside of this server, only localhost DB connections are accepted). And of course, I have another SSH access to this server. Is there any way to j...

Right way to share a git repo over ssh

I'm using a box as a shared repo, and my team connects to it via ssh. What I do is: Create an empty git repository on the central machine git init Then from each workstation do something like git clone ssh://user@central-box/Users/user/Projects/my-project/.git/ This works nice, but git keeps yelling at me every time I make a push so...

Aptana SSH synchronization?

Is there any way to sync remote files via ssh in Aptana Studio 3? Thanks in advance! ...

ssh: The authenticity of host 'hostname' can't be established

When i ssh to a machine, sometime i get this error warning and it prompts to say "yes" or "no". This cause some trouble when running from scripts that automatically ssh to other machines. Is there a way to automatically say "yes" or ignore this? ...

Perl Net::SSH::Perl not loading my environment variables vs connecting through SSH

Hey , My problem is connecting throguh Net::SSH::Perl vs Connecting through SSH. my shell variables ( command: export ) aren't the same. This fact prevents me from executing user's script that depends on the shell env vars. For example: if i execute through perl ( Net::SSH::Perl ) the command: "export" I get: MAIL=/var/mail/username...

how to open a putty session using C#

I would like to know how to open putty using C# in Visual Basic express. Then execute commands through the ssh session. ...

getting ssh-agent to work with git run from windows command shell

Hello! I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already running) each time git bash is opened. Here is my script: http://www.cygwin.com/ml/cygwin/2001-06/msg00537.html I am also using git extensions, which runs the git com...

SSH not releasing terminal

Hello, When I run the following command from my macbook to my ubuntu server the terminal does not get released. It just sits there until I Control-C the command. ssh user@my-server 'sudo /etc/init.d/nginx start' When i login and then run the command everything works fine. ssh user@my-server sudo /etc/init.d/nginx start Here is the...

Any way to eliminate time lag with sshfs?

If I rsync a directory with some remote directory under an sshfs management, even if the rsync process finishes synching the directory contents, there seems to be a time lag for the sshfs directory to get updated. It is unintuitive and makes some automation process relying on sshfs contents unstable. How do I eliminate the lag? ...

How to ssh into the cpanel of my hosting server?

I want to ssh into my domain's cpanel hosted on a linux server ? I'm planning to use Ubuntu's terminal as my ssh client. my hosting service provide is squarebrothers ...

Automated distribution of processes through SSH.

I can launch processes on one of 20 machines using SSH (there is a shared file system). But I need to constantly watch these machines as they may be turned off/on at random times. I've hacked a shell loop but it is unreliable. Is there a program that could do that for me? ...

pushing code to windows servers in a scriptable way

I'm looking for a good way to push code quickly and securely to my company's Windows web servers for release deployments. I have a *nix background and in the past have always used rsync in conjunction with ssh for such tasks because it is quick, secure, and scriptable. Right now our deployment process is very manual and requires loggin...

sshj example of private/public key authentication

Can anyone give me an example of private/public key authentication in sshj? In sshj what's the command line equivalent of, ssh -i /path/to/mykey.private username@host I tried (error handling omitted), final SSHClient ssh = new SSHClient(); ssh.loadKnownHosts(); ssh.connect("host"); ssh.authPublickey("username", "/path/to/mykey.priva...

maven release plugin - wagon fails with ssh auth but snapshort and release deploy works - eh?

I'm baffled and would appreciate any help. My build machine can no longer use the maven release plugin. When I try it fails on auth during the deployment from the tag. However, this machine can release using the standard deploy method to snapshot and release repositories (which are on the same machine with nexus as intermediary). ...

How do we configure SSH using Perl in Windows?

Can anyone suggest a a very simple way to use Net::SSH::Perl in Windows without all those cygwin hacks and all. Whenever I am trying to install the modules it's taking me to some other dependent modules and the process seemed never ending.. Thanks beforehand ...

Run custom Django management command over SSH

I have a Django application with a custom management command in one of the apps. If I log in over SSH I can run it without any problems with python manage.py sitedir/mycommand However, if I try to run the command as a oneliner from my local box like this: ssh myserver python manage.py sitedir/mycommand I get an ImportError li...

Start interactive SSH session from Python script.

Hello, I'd like to start an interactive SSH terminal from a Python script without using modules like pexpect or paramiko - I want to stick with what CentOS pre-installed Python provides me (to ease compatibility and deployment issues). I can run commands fine using the subprocess module, but cannot get an interactive terminal. In Perl...

Difficulty checking out svn project with alternate username

I'm trying to check out a project from a school server, but it attempts to use my computer login name instead of my server login name, so it fails. my commands: svn checkout svn+ssh://[server name and stuff]/[school login name] and it says: [computer login]@[server name]'s password: which doesn't exist. I attempted to use the -...