ssh

Connecting to gitosis server through an SSH tunnel.

I've got an SSH tunnel setup on my macbook, like this... $ ssh -o ServerAliveInterval=3 -N -L 22222:gitosis-server:22 [email protected] So I can ssh to localhost:22222 and will end up on the gitosis-server behind the firewall. I've created a local id_rsa.pub file, copied it into the gitosis server(running Centos5), and importe...

Are there ways of doing opendir(), readdir() type of calls through SSH/SFTP?

I have a bit of code that reads a directory for files to process. I currently use the dirent.h,opendir(),readdir() methods of doing this. I have been told that I need to do the same thing, only now it is a directory on a remote machine with SSH/SFTP access. The only way (that I can think of) to do the same thing, without changing anyth...

C#/Tamir.SharpSsh: System.IO.IOException: Pipe closed

I'm using Tamir.SharpSsh to upload a file to a ssh server with the code below but I'm getting System.IO.IOException: Pipe closed. Any clue why? SshTransferProtocolBase scp = new Scp(SSH_HOST, SSH_USER); scp.Password = SSH_PASSWORD; scp.Connect(); foreach (string file in files) { string remotePath = "incoming/...

SSH Java-library for Android?

I'm trying to create an app for Android that simply sends a command to an SSH server. No response needed, I just need to be able to send a command. I was wondering if there's any java library out there that I could use? No advanced stuff needed, just a pure connection to send the command. ...

SSH Key Authentication [Hesitance?]

I guess I'm being a little hesitant but I deal with vcs's occasionally and always get asked for some sort of prompt, of course I'm attempting to access an external machine which I'm sshing into. Basically my question is, say I don't have root access on this machine, would it still be possible to set this up? I've skimmed through readin...

Using svn via ssh as a local environment...

I'm mounting a server in Ubuntu using Nautilus and FTP. For Facebook development, working on the files on the server makes the development cycle easier and quicker. I'm trying to set up a "local" svn repository on the server...to do so, I connect to the server using the terminal and ssh and run the commit and update commands. My probl...

How to access c# sockets server from telnet or SSH?

I've created a very simple sockets server in C# that, when given a number, returns the number doubled. I'm using TCPListener. This server currently works with a simple Winform client I put together, using TCPClient. I tried to connect to the server with Absolute Telnet while it was running. It connects, however the telnet program doe...

SSH setup for the multiple server admin

Hi all, I´m looking for a good ssh password/key setup for a system administration of multiple servers. The ideal one will be one that can be at the same time comfortable and secure, but after thinking a lot around the problem, no solution seems acceptable. Basically I arrive to these 2 setups: One where every server has a strong (and...

gitosis authorized keys

Strange thing - on git push gitosis does not adds key for new user to the /home/git/.ssh/authorized_keys. Of course - i can add keys manually, but its not good :( What can i do? ...

Exit status code for Expect script called from Bash

I made a Bash script which uses an expect script to automate ssh logins.The script connects to multiple servers and runs some commands. The bash script prompts for login credentials once. I want to incorporate a feature wherein the script terminates if the login fails for the first server to avoid the script checking for next servers re...

read error: 0: Resource temporarily unavailable

I have a bash script which prompts for user input multiple times and processes input in the background during the time the next input is expected. I keep getting this error once in while. read error: 0: Resource temporarily unavailable I suspected the background processes in my script would be causing this so I tried putting a < dev/n...

How can I display the execution status of the command "ssh-copy-id" from Perl?

I have a Perl script which does this: It generates a ssh authentication key on my system and then copies this key to a remote Linux system for passwordless ssh connects. The code is as below: # Generate an rsa key and store it in the given file system("ssh-keygen -t rsa -N '' -f /root/.ssh/id_rsa 1>/dev/null"); # Copy the generated ke...

Git push to GitHub failing - seems to be trying to use HTTP?

I've setup a Hudson continuous intgration server on an Ubuntu 8.04 slice, git version 1.6.4. I am able to have it pull code from a private repo GitHub, but I can't seem to get it to push the tags back after a build. I see the following: # sudo -u hudson git push --tags XML error: syntax error error: Error: no DAV locking support on http...

how to get console output from a remote computer (ssh + python)

Hi All, I have googled "python ssh". There is a wonderful module "pexpect", which can access a remote computer using ssh (with password). After the remote computer is connected, I can execute other commands. However I cannot get the result in python again. p = pexpect.spawn("ssh user@remote_computer") print "connecting..." p.waitnoe...

Gitosis and ssh keys - does the email address have anything to do with the git email address?

I'm trying to set up gitosis on a server. I was just wondering one thing, my ssh key has my gmail address at the end, because I was originally using it for github. For this new project on the server I'm setting up, I want to use my email address for this organization when committing to git. Is it OK for me to use the same ssh key when se...

How to make ssh receive the password from stdin

How can you make SSH read the password from stdin, which it doesn't do by default? ...

SVN+SSH authentication isses when running CruiseControl.NET 1.4.4 SP1 service on Windows Server 2003

The SVN+SSH protocol works great for the logged-in user because we have Pageant (PuTTY authentication agent) running in the background for that user. When we try to run the ccservice (as opposed to the ccnet.exe app) the svn+ssh fails. What am I missing in the config to get it working? <cruisecontrol xmlns:cb="urn:ccnet.config.builder">...

ssh through emacs shell?

Hi emacs users, I wonder if anyone out there uses ssh through the emacs shell. I am able to connect with the remote machine but I cannot open files to view/edit with emacs using 'emacs filename' as the 'Terminal type "dumb" is not powerful enough to run emacs' (normally emacs would open within the console when connecting through the term...

Editing remote files with Emacs using public key authentication

How can I edit files on my remote host using my local Emacs when I can access the remote host only through SSH with public key authentication? Tramp handles normal password logins pretty well but I can't figure out how to get it work with key pairs. I'm using unix/linux on both ends. ...

Why is ssh prompting me for a password after I give it to Perl's Net::SSH::Perl?

I am using Net::SSH::Perl to execute a command on a remote server as follows: use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my ($stdout, $stderr, $exit) = $ssh->cmd($cmd); But when I execute the above script, a password prompt comes again. Meaning the password I supplied in $pass is not taken to ...