openssh

Why does Vista complain about a dead process when I use Cygwin X11 ssh and how do I get it to shut up?

When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some process died. How do I get Vista to shut up about it? Specifically, the message reads: sh.exe has stopped working So it's no...

Managing authorized_keys on a large number of hosts.

What is the easiest way to manage the authorized_keys file for openssh across a large number of hosts? If I need to add or revoke a new key to an account on 10 hosts say, I must login and add the public key manually, or through a clumsy shell script, which is time consuming. Ideally there would be a central database linking keys to acc...

How do I remove the passphrase for the SSH key without having to create a new key?

I set a passphrase when creating a new SSH key on my laptop. But, as I realise now, this is quite a PITA when you are trying to commit(git,svn) to a remote location over SSH many times in an hour. One way I can think of is, delete my SSH keys and create new. Is there a way to remove the passphrase, while still keeping the same keys? A...

Using git with SSH and (sometimes) corkscrew

I need to use git over SSH (it's a self-imposed limitation, but one I am loathe to break). If my laptop is sitting on my home network, it all works great. When I'm at work or logged in via VPN, however, I would need to use corkscrew to access my remote repository, which I can set up without problems. I would like to remain lazy and ...

SSH - a way to transfer files without opening a separate SFTP session?

Not really a programming question, but relevant to many programmers... Let's say I have opened an SSH session to another computer. remote:html avalys$ ls welcome.msg index.html readme.txt remote:html avalys$ Is there any command that I can type in my remote shell that will immediately transfer one of the files in the current...

Running commands over ssh with Java

Scenerio: I'd like to run commands on remote machines from a Java program over ssh (I am using OpenSSH on my development machine). I'd also like to make the ssh connection by passing the password rather than setting up keys as I would with 'expect'. Problem: When trying to do the 'expect' like password login the Process that is create...

Do you know of any OpenSSH libraries for Windows?

I'd like to incorporate OpenSSH support into a Windows application and I am looking for a library (preferably .Net or something easily integrated into .Net) that can provide this functionality. I'm more interested in ssh client software than server software, but both functions would be even better. Edit: I'd prefer a free and open so...

Restricting OpenSSH to allow uploads only to certain directories.

I need to run backups from multiple servers to a single account on another server. If one of the public servers is compromised, I don't want the other server's files on the backup account compromised. What I need to do is only allow SCP to a specific directory, based on the ssh key of the incoming connections. I know that I can set the...

Anyone have any problems installing OpenSSH via Cygwin on Vista 64 Bit?

I was able to install the sshd service (after A LOT of problems), and was able to ssh on the machine that I installed it on by saying ssh [email protected] AND ssh localhost. However, all other machines on my local area network could not ssh to it. I checked and port 22 was indeed open, and SSH was listening on that port. Anyone gone thr...

How to handle ssh host key verification with 2 different hosts on the same (but changing) IP address?

I have 2 ssh servers behind a nat firewall at a location that changes its wan IP every day. They are always at the same wan IP address on a given time but on different ports. I am connecting to server A this way: ssh -p 22001 [email protected] and to server B: ssh -p 22002 [email protected] So I get 2 different host keys for t...

Perl and CopSSH

I'm trying to automate a process on a remote machine using a python script. The machine is a windows machine and I've installed CopSSH on it in order to SSH into it to run commands. I'm having trouble getting perl scripts to run from the CopSSH terminal. I get a command not found error. Is there a special way that I have to have perl ins...

Convert pem key to ssh-rsa format

Hi I have a certificate in der format, from it with this command i generate a public key: openssl x509 -inform der -in ejbcacert.cer -noout -pubkey > pub1key.pub result is this: -----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7vbqajDw4o6gJy8UtmIbkcpnk O3Kwc4qsEnSZp/TR+fQi62F79RHWmwKOtFmwteURgLbj7D/WGuNLGOfa/2vse3G2...

SSH intermittently freezes on Cygwin before requesting a password

SSH on Cygwin intermittently freezes before requesting password authentication. I would be grateful for a way to track down the error: is there a log file I can check, or a website that explains this problem? Thanks in advance for your help :) When SSH freezes, it looks as follows: # My command input ssh -l $username $ip_address -v...

php chown file in remote server ssh2

Hi, I'm uploading one file from one server to other using ssh2_scp_send(). Everything works fine, the only problem is that I don't know how to change the owner and the group of the file after finishig the upload. How can I preform some kind of chown in the ssh2 ...

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...

compiling OpenSSH for iPhone?

I'm trying to (cross-)compile obfuscated-openssh for the iPhone, and I'm running into some problems. I'm using this to configure the build: ./configure --host=arm-apple-darwin CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 \ CFLAGS="-arch armv6 -pipe -std=c99 -I/Developer/Platforms/iPhoneOS.platf...

SSH Private Key Permissions using Git GUI or ssh-keygen are too open

Recently I've been unable to clone or push to github, and I'm trying to find the root cause. This is on windows I have cygwin + git as well as msysgit. Msysgit was installed with the following options: OpenSSH Use Git from Windows Command Prompt That gives me 4 environments to try to use git in: Windows cmd prompt Powershell Git...

Scheduled sftp job fails

I have Cygwin+OpenSSH installed on Windows XP workstation. Simple SFTP process (batch file) runs fine when launched from the Command Prompt and fails when launched by a Scheduler from Novell Desktop Management. Scheduled job uses exactly the same batch file and runs as Interactive User impersonation. WhoAmI embedded in the batch file ...

ssh with command....Plus the shell

Hi, I'd like a command that ssh'es into a machine, runs a command (cd or execute a script or su), and then gives me the shell. Passing a command to ssh seems to always exit. Some examples of what I'm looking for: 'ssh me@machine1 "./executeMyScript && cd /developmentDirectory"' and then it gives me my shell back. The reasons I want to...

How to install source rpm(src.rpm) in fedora?

Hi, How to install source rpm(src.rpm) in fedora? When i try to rebuild spec file after install package(for example openssh) with sample command : rpmbuild -ba openssh.spec I get folow message and not complet build Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QkUOot + umask 022 + cd /root/rpmbuild/BUILD + LANG=C + export LANG + un...