ssh

SVN+SSH Connection Giving Error 210002, Network Connection Closed Unexpectedly.

OK, I'm having a problem settings up SVN+SSH. I have SVN running on a Linux server and trying to connect from a Mac laptop running Snow Leopard. XCode tries to connect, but gives the message "Error 210002, network connection closed unexpectedly." Nothing online seems to explain. I connect using xcode with HTTP and it works correctly ...

is it possible to have a C/C++ GUI application in linux bare-bone server?

I am very disappointed with my school linux server when doing the homework on it. The reason is: my homework requires to make GUI application. All the tool that I have is: - ssh from my local machine to school machine - gcc/g++ in my school machine I have been thinking and tried out different solutions for a week. I still can't be ...

How to run perl script in remote machine from delphi application?

Hi I am working in a delphi application. I need to execute a perl script which is in remote machine in delphi application from local machine. I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the perl script,I just open the putty window, connect to the re...

ssh remote command execution and ulimit

I have the following script: cat > /tmp/script.sh <<EndOfScript #!/bin/sh ulimit -n 8192 run_app EndOfScript which runs smoothly locally, it is always ok. But if I try to run it remotely through ssh: scp /tmp/script.sh user@host:/tmp/script.sh ssh user@host "chmod 755 /tmp/script.sh; /tmp/script.sh" I got the error: ulimit: open ...

Transfer of entire contents including white space of non-volatile storage on switch to a server over ssh

This is a feature request for our networking switch where a customer wants complete binary dump of the entire contents (including white space) of all the non-volatile storage we have on our equipment (like compact flash/eeprom) to a server over a ssh v2 connection. What is the best way to do this ? ...

How to ssh from within a bash script?

I am trying to create an ssh connection and do some things on the remote server from within the script. However the terminal prompts me for a password, then opens the connection in the terminal window instead of the script. The commands don't get executed until I exit the connection. How can ssh from within a bash script? ...

What's an easy way to have terminal use a different color based on ssh host name?

Using putty in windows, you can save sessions that connect to a certain host and use a certain text color...this was super useful for me since I work with a bunch of remote hosts and I'm wondering if there is (there must be) a way to get Terminal (in Snow Leopard) to emulate this behavior. I'm wondering how I would 1. Save a connection...

SVN+SSH, not having to do ssh-add every time? (Mac OS)

I know the answer is out there, but I'm pretty Unix-dumb and probably wouldn't recognize the solution if it hit me in the face. I'm on a Mac, connecting to a SVN server via SSH tunneling. I have to ssh-add privateKey.txt every time I want to connect to the SVN server (Both Cornerstone and Xcode are connecting to SVN). Is there a way...

Nested SSH session with Paramiko.

I'm rewriting a Bash script I wrote into Python. The crux of that script was ssh -t first.com "ssh second.com very_remote_command" I'm having a problem with the nested authentication with paramiko. I wasn't able to find any examples dealing with my precise situation, but I was able to find examples with sudo on a remote host. The fir...

rails Rake and mysql ssh port forwarding.

Hello, I need to create a rake task to do some active record operations via a ssh tunnel. The rake task is run on a remote windows machine so I would like to keep things in ruby. This is my latest attempt. desc "Syncronizes the tablets DB with the Server" task(:sync => :environment) do require 'rubygems' require...

Bash: controlling SSH

Hello, I have this bash file, which asks for IP, password, etc. for OpenSSH to a device. Now, if i use ssh root@ip, i have to enter the password. This is really irritating. Secondly; i cannot let my script send commands to it. This is what i want-> Not the password thing; i already found something; but it tells me the commands are n...

Amazon EC2 instance

Hi, I have setup an amazon EC2 intance using the command line tools. I have create a key pair for it etc. and it is up and running. I try to SSH into it using the following (I am running bash in Snow Leopard): $ ssh -i ec2-keypair [email protected] Snow Leopard pops up a box saying "Enter you password for ...

How can I write a program (script) to remove obsolete host keys from ~/.ssh/known_hosts?

I use a cluster of about 30 machines that have all recently been reconfigured with new OpenSSH host keys. When I try to log into one, I get this error message (many lines removed for brevity): @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ The fingerprint for the RSA key sent by the remote host is 52:bb:71:83:7e:d0:e2:66:9...

python libraries for ssh handling

Hi Guys, I'm going to write first code for handling ssh commands on python and I did search over the stackoverflow and see that there are several python libraries that can be used for handling commands passed through ssh, like paramiko, pexpect and perhaps some others. Particulary, I will need to read content of the files from the remo...

Have SSH login session redirect to interactive telnet to localhost instead

I am developing for a system that has an interactive telnet management console. Requirements dictate that we disable telnet access and add SSH instead. Changing the management console into a stand-alone program that we can use for SSH login would require a vendor to get involved. I was thinking of a less expensive solution that would ...

Allowing additional users to access and EC2 instance

I have set up an Amazon EC2 instance and am able to SSH into it. Can anyone please tell me how I could allow additional users to SSH into this instance from a different location? Max. ...

Capistrano and Git, Ruining my life. "Unable to resolve revision for [HEAD] on repository ..."

Hey All, I searched all of the relevant Capistrano issues, but couldn't find something that even elucidated anything here for me. git version 1.6.4.2 Capistrano v2.5.10 Basically, when I run my cap deploy.rb script, it connects to the server, starts executing the deploy:update task, then in the deploy:update_code task: *** [...

EC2 and login logging

Hello - I have set up several EC2 instances and intend to give multiple users access to them via SSH. Is there any file on the server that monitors who logs in and when? Any help greatly appreciated. Max. ...

connect to remote mysql database through ssh using java

How can I connect to remote MySQL database through SSH from java application. I'd appreciate a small code example. ...

How do two machines authenticate over an SSH connection?

Hi guys: I always use ssh in putty to connect a remote server. As I know, ssh is based on public/private key mechanism, is it? Does that mean the client will receive a public key first time when it connects to the server and then use the public key to continue with following communication? Thanks. ...