ssh

How to generate SSH key pairs with Python

Hello, I'm attempting to write a script to generate SSH Identity key pairs for me. from M2Crypto import RSA key = RSA.gen_key(1024, 65337) key.save_key("/tmp/my.key", cipher=None) The file /tmp/my.key looks great now. By running ssh-keygen -y -f /tmp/my.key > /tmp/my.key.pub I can extract the public key. My question is how can I ext...

Problem stopping an Erlang SSH channel

NOTE: I'll use the ssh_sftp channel as an example here, but I've noticed the same behaviour when using different channels. After starting a channel: {ok, ChannelPid} = ssh_sftp:start_channel(State#state.cm), (where cm is my Connection Manager), I'm performing an operation through the channel. Say: ssh_sftp:write_file(ChannelPid, Fil...

Similar to SSH Local Forwarding

Hi; As you know SSH protocol supports up to some max value of local forwarding and it is a really good feature. My question is: is there any similar project just making this local forwarding thing? I do not need all this bunch of features coming with SSH.. Thanks ...

ssh script gives "key_read" error

I'm using a script that connects to a cluster through ssh and sends some commands, then quits the connection. This script basically connects once using ssh, then executes a script in this session. This script loops through a list of commands a few times and after it is finished, the connection is terminated. So this script works fine, ...

Git with SSH on Windows

Hello all, I've went through the excellent guide provided by Tim Davis which is about configuring Git to work with SSH under Windows in order to produce a Git Server in order to have a main place for my DVCS. I am in the process of creating a clone for my project. I’ve went through all the steps till this point, but I keep getting thi...

Convert Maildir to mbox

Hi, Im changing hosts and i need to convert my maildir accounts on my old server to mbox on my new server. Any ideas on the best way to do this? I found this: for i in new/* cur/*;do formail <”$i” >> ../mbox;done But i dont really understand it. I have a basic knowledge of linux and I have root access to my server via ssh. most of t...

interesting network or git problem

I have a setup my own git repository with gitosis on dedicated debian server. The server is visible via port 22 from outside (the port 22 is forwarded from my router to my git server). On the local network the git repository works perfectly. The problem happens once I try to do "git clone.." from remote server. So once I do "git clone.."...

how to run SSH commands on remote system through java program?

Hi all, I am new to this kind of application and looking for some sample code how to connect to remote server using SSH , execute commands and get output back using java as programming language. Thanks in advance..... Regards, Devayani ...

Transfer file over ssh

Hi all, In ssh protocol, is there a mechanism for file transfer? Im working on a existing code base which already has ssh facilities code. Now i need to transfer files over ssh connection. If ssh protocol already support it, i don't have to integrate scp stuff into it. Thanks. Edit: Im using C, ssh code based on openssh. I have to tra...

Why public key authentication is preferred for automated scripts?

I found the following claim in the documentation for Net::OpenSSH: Note that using password authentication in automated scripts is a very bad idea. When possible, you should use public key authentication instead. What's flawed in using password authentication in automated scripts? ...

CopSSH + Git: path issue.

Hello. I'm confused. I've installed copSSH and linked it with msysgit installation (by adding path to it). And now whenever I use copSSH tools (like ls, cd) I should use the absolute paths in form like '/home', /cygdrive/d/copSSH/home. But when I used git I should use absolute paths in a different (another) form. like '/copSSH/home', ...

How to SSH to Amazon EC2 redhat instance without using keypair?

I have an app I'd like to use that requires an SSH connection to the server. Unfortunately there are no settings to use my keypair - only un/pw authentication. Does anyone know a workaround? I've already tried editing ssh_config, setting PasswordAuthentication yes and reloading. Thanks for any tips! ...

scp all files starting with 'file' from a server

Hi, I use this command to copy all files whose names start with 'file' from a server. scp -vp me@server:/location/files* ./ But i got a 'No Match' error. probably Concerning the '' in the command. How can i protect the '' for ssh to understand that this refers to a list of files and not taking it as a filename. Thx August ...

need to use git behind firewall: trying ssh tunneling

Hi, I am trying to use ssh port forwarding to defeat corporate firewall: ssh git@GIT_SERVER -L9418:GIT_SERVER:9418 and in another terminal I run git clone git://localhost:repositories/project.git But I get the following error: Initialized empty Git repository in /Users/aboxer/tmp/glucosia/.git/ fatal: Unable to look up lo...

Running ssh-keygen without human interaction?

Would it be possible to run ssh-keygen without human interaction? I have a shell script that takes care of server deployment from start to finish, but ssh-keygen is the only remaining piece that still requires my input. Would it be possible to feed the parameters to it? Or is there something similar to debconf-set-selections that could...

specifying classpath for built-in ant tasks

I use the classpath attribute in custom Ant tasks to tell Ant where to find the external task jar, but how do I do the same for built-in tasks? In my case I'd like to make sure ant uses my copy of jsch.jar for the scp task, and not one that my already be installed on the system. Is there any way I can <scp> while guaranteeing it's using...

How do I configure Eclipse's Subversion config file to use my private-key?

Hi, I'm using Eclipse and the Subversive for SVN control, in Windows. I've also installed TortoiseSVN. The SVN repository I'm using is utilizing a svn+ssh scheme, and there is no way to change that. Now, there's a file in %APPDATA%\Subversion\config that I need to edit to perform SVN interaction in Eclipse without typing in the passwor...

Action Script SSH Client

Have you seen AS SSH Client? ...

Git and ssh authorizating

Hello, I can't login to github with generated ssh-keys. I've followed this manual: http://help.github.com/linux-key-setup but at step: ssh [email protected] I get: Agent admitted failure to sign using the key. Permission denied (publickey). What's wroing? And, of course, I'm adding my own user email. Tried dsa-key, the s...

Git : Failed at pushing to remote server, ' REPOSITORY_PATH ' is not a git command

I'm using Git with TortoiseGit on Windows XP, and I have a remote bare repository on Windows Vista 64bit version. When I tried to push my local files to remote bare repository, I got the following error message. git.exe push "origin" master:master git: '/Git_Repository/.git' is not a git command. See 'git --help'. fatal: The remot...