ssh

accessing one mercurial repo with different methods

Hi. I want to make the same (physically same) Mercurial repository accessible via ssh and https (hgwebdir). Are there transaction problems when ssh users and http users push at the same time? ...

What are the drawbacks to hosting a git repository with WebDAV instead of SSH?

I have a large git repository that I am hosting with Dreamhost. It has grown slowly over time and have had no problems with it until just now. It has no problem pushing and pulling but when I try to clone from the remote the pack-objects process is getting a kill signal 9. From what I have read this is dreamhost killing the process becau...

Detect console prompt in VT100 SSH Session stream

I'm working on a wrapper library (in C#, but not really important to the issue here) to open an SSH connection and then allow for sending commands to the server and receiving the response. The main thing, however, is that I want to have the command call buffer the response stream and then return it all as one string to the user once the...

Cron bash script leaves cron [defunct] lingering..

Hi! I'm running the below script with cron, in /etc/cron.d/mycron I have the following: */10 * * * * MyUserThatNeedsToRunTheScript /backup/sshconnect.sh However, looking at ps -aux I find that a few [defunct] processes are lingering, any ideas? Does this have to with SSH being run with -f ? 5 0 1598 641 20 0 2552 1068 p...

ssh to different machine to find the number of file.

echo "`${BOLD}` ***** Checking CoreFile Creation *****`${UNBOLD}`" echo "========================================================" IFS='|' cat configMachineDetails.txt | grep -v "^#" | while read MachineType UserName MachineName do export CHK_COREFILE=`ssh -f -T ${UserName}@${MachineName} ls ~/corefiles ...

in my bash loop over a list of some servers, if the ssh connects the bash script exits

I have a quick script to run a command on each server using ssh (i am sure there are lots of better ways to do this, but it was intended to just work quick!!). For the test1 etc, there is no server so the script continues, the script also continues if the pubkey auth fails. However if the script connects, the date is printed but the ssh ...

git push returns "fatal: protocol error: bad line length character"

I set up a remote Git repository on a shared host account I own. To allow another developer to push/pull, I added his public key (id_rsa.pub) to the end of .ssh/authorized_keys on the shared host. Then he was able to do "git push". But I want to make sure that he cannot do anything else on my shared host but access git, so I added thi...

Multiple GitHub Accounts & SSH Config

I'm having some trouble getting two different SSH keys/GitHub accounts to play well together. I have the following setup: Repos accessible from one account using [email protected]:accountname Repos accessible from another account using [email protected]:anotheraccount Each account has its own SSH key. Both SSH keys have been added and I ha...

Granados SSH Library and ForwardAgent directive.

When using the Granados C# SSH Library, is there any way to set the ForwardAgent directive to true? The library works perfectly for me, but I need to use it when connecting to a compute cluster and it does not forward on my auth keys to the other servers. ...

Using Expect to administer machines via SSH, but does not complete all tasks.

*Please do not pile on and tell me to just use SSH keys. If it bugs you that this is the way I am doing it, pretend that I am trying to telnet in instead. :-) * I am using an expect script to run some routine commands on a set of servers under my control via ssh. The script should run set of commands (eg svn update ~/folderx\r") on e...

Ruby Dir and File on remote server?

If I have a remote SFTP server with a folder full of files on it that I want to operate on with Ruby's Dir and File classes, is there a way to do that through the net/ssh and net/sftp libraries? I know that net/sftp has a few Dir and File utilities strapped to it, but unfortunately they're not the ones I need. I need File.ctime(my_file...

Starting a process over ssh using bash and then killing it on sigint

I want to start a couple of jobs on different machines using ssh. If the user then interrupts the main script I want to shut down all the jobs gracefully. Here is a short example of what I'm trying to do: #!/bin/bash trap "aborted" SIGINT SIGTERM aborted() { kill -SIGTERM $bash2_pid exit } ssh -t remote_machine /foo/bar.sh & b...

Increase the performace of the code by reducing the number of ssh

This function take hugh amount of time to calculate the status of a process, beacuse every time it has to ssh into the machine and find the status of a process. I only have four machines and around 50+ process to monitor and the details are mentioned into configDaemonDetails.txt like: abc@sn123|Daemon_1|processname_1 abc@sn123|Daemon_...

.gitmodules changes with multiple git users, causing a constant headache

Hello, allow me to first of all say I'm a Git n00b and relatively new to version control entirely. We've done a good job of using Git in a Windows environemnt with Visual Studio so far, and all seems to be going well. However something that is annoying is the .gitmodules 'battle' we currently have on our hands. If UserA creates a new su...

How to handle ssh key ?

system("ssh test.host.com"); its asking for permentaly add key or not ? I want automatically it should say yes ! ...

Fabric auto-login in Windows

Relevant question: http://stackoverflow.com/questions/2339735/fabric-password I configured Putty to login with private-public keys (no password) using this guide: http://www.codelathe.com/blog/index.php/2009/02/20/ssh-without-password-using-putty/ It works. Now I want to run Fabric with no password prompt. This does not work and I...

Creating a SSH connection in a program?

Hi all, I am writing a programing (in C) in which I have to access data from another computer through an SSH connection. I was wondering how to create the SSH connection within the program. Thanks ...

dscl doesn't work from inside re-attached screen

I am on Mac OS X 10.5.8. I am not sure exactly when this started happening, but I find that when I re-attach to a screen session that was started from an ssh session, anything relying on dscl (directory services), or the underlying getent stuff, fails. If I start the session on that machine in Terminal, everything works. Only remotely s...

How To Start Jetty Properly

Hi, this really silly question probably, as no one else seems to be having this problem. In the Jetty documentation it says jar -jar start.jar starts Jetty, and it does. But when I close my SSH console, obviously it dies. How do I run it PROPERLY? ...

how to pass password for rsync ssh command

I need to do rsync by ssh and want to do it automatically without need of passing password for ssh manually. ...