Tagged Questions

OpenSSH is one of the most popular implementations of SSH used today and available by default in many Linux and Unix-like operating systems.

learn more… | top users | synonyms

0
votes
1answer
953 views

strange permission error involving ssh, Cygwin, Windows 7, and .sh files

I am new to Cygwin, ssh, and messing with file permissions and have a problem. On computer WORKER1, I am attempting to ssh into computer WORKER2 and then running a .sh file on WORKER1 from there. From ...
0
votes
1answer
492 views

Execute command/script after file transfer

I've configured a server (Ubuntu) with OpenSSH for file transfer via sFTP. The requirement is that after a file transfer, a mail is sent confirming the file was received by the system. How would I do ...
1
vote
2answers
153 views

Using OpenSSH on Windows for enterprise use

Is OpenSSH for Windows (using Cygwin) is considered to be robust & stable for enterprise use?
4
votes
2answers
675 views

SSH remote login without password is very slow

SSH Client - Mac OS X Lion SSH Server - Debian /etc/hosts on Mac -> [IP of Debian] mydebian Public key of Mac has already been put to authorized_key in root@mydebian:/root/.ssh 'UseDNS no' has been ...
0
votes
0answers
79 views

ssh connecting timeouts from a to b, but works from a to c, and c to b

I am scratching my head here. I now get timeouts between hosts A and B, both running Ubuntu, with some firewall NATing on either side and a good dozen hops in between. (To clarify based on the first ...
1
vote
3answers
17k views

Can't connect with putty to a Linux server

I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is ...
1
vote
2answers
641 views

OS X, SSH: use different private key files for different servers

I want to use different private key files to connect to different SSH servers (ssh://git-server:port/repository). How to manage that? SSH seems to assume the private key file in ~/.ssh/id_rsa.
1
vote
1answer
250 views

ssh to Windows server sitting behind Linux firewall

I have been looking everywhere and still can't get an answer. I am sorry if this is a re-post somehow. I Have a home network setup as follows: OUTSIDE -> Linux Firewall/Gateway -> Windows Server I ...
0
votes
1answer
175 views

ssh_exchange_identification: unprotected port

I wanna login a guest minix system resides inside VirtualBox through ssh and receive the error ssh_exchange_identification: Connection closed by remote host. After turn on the verbose flag, the ...
1
vote
2answers
547 views

SSH client not showing prompt after successful login

I'm having problems with my SSH client on Ubuntu 10.10. When I switch on my computer and open a Terminal and execute the command ssh user@host, it gives me a password prompt after which I enter the ...
3
votes
2answers
455 views

Automatically reconnect interactive SSH session

What's the best way to automatically reconnect an interactive SSH session to re-establish the shells on terminals? I looked at autossh but that seems to be dedicated to port forwards (which I do not ...
0
votes
0answers
355 views

SSH Port Forward 22

I'm trying to set up the following: At work I want to create a local port that will forward to port 22 on my home server. ssh -L 56879:home:22 username@home -p 443 right now I'm testing this on my ...
2
votes
1answer
1k views

Can't setup SSH server on Cygwin

I had set this up a while ago on a different computer, but I can't get it running now. I've followed the directions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html and I'm getting the following ...
1
vote
1answer
126 views

SSH ForcedCommand causes connection to close

I'm SSHing a server (I'm on cygwin using openSSH), and I went into authorized_keys and modified the file as follows: ssh-rsa [key] to command="echo Working" ssh-rsa [key] Now when I connect to the ...
8
votes
1answer
22k views

How can I setup the openSSH SFTP server on Linux?

I want to configure sftp-server to share a directory but I don't know how to modify /etc/ssh/sshd_config. My requirements are: 1) Login shall not use certificates, only password (i.e. authorization ...
1
vote
1answer
711 views

Exclude specific group/users from ForceCommand in OpenSSH ssd_config

I want to make ForceCommand internal-sftp and ChrootDirectory /jail the default for all users accessing a server via SSH. Only users in a certain group are allowed to escape this. How can I exclude a ...
1
vote
4answers
1k views

Managing a server over SSH

I am running a Minecraft server on Fedora 15. I have openssh-server installed on the server and I can connect to it just fine. Right now, the Minecraft server software opens into a terminal when the ...
3
votes
2answers
3k views

Public key in hex format, conversion to base64

Hi I'm new to cryptogragraphy and have no idea how to do this. So i get a public key from a Putty session and it looks like this: ...
10
votes
5answers
29k views

How to SSH to localhost without password?

EDIT: Putting exactly what was done. I need to SSH to localhost without a password, the usual way of doing it (with public keys) do not work. user@PC:~$ rm -rf .ssh/* user@PC:~$ ssh-keygen -t rsa ...
1
vote
2answers
176 views

why doesnt key authentication work for openssh?

I am working on setting up a hadoop cluster, as per the following tutorial: http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/#sun-java-6 My problem comes in ...
0
votes
3answers
2k views

Ubuntu 11.04 desktop: cannot connect to openssh-server from the outside

I use Ubuntu 11.04 as desktop OS. I have openssh-server installed and can connect to it from the same computer. I want to use it to create a connection from another computer (on the same local ...
1
vote
1answer
161 views

SSH weird behaviour if user not logged on physical server

I have a strange issue with my ssh server. If I start my home server, then login through ubuntu with my account (I only have one account) everything works fine, I have no problem to access the ssh ...
12
votes
7answers
30k views

OpenSSH server refuses to accept key authentication

I tried to use public key authentication on my new server, and I came across this problem. $ ssh -v -i .ssh/server 192.168.1.100 OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration ...
1
vote
1answer
2k views

Make msysgit work with cygwin ssh?

git-upload-pack errors occur when sshing into cygwin. sshd in cygwin does not take paths from .bash_profile as expected in a *nix environment. What is the way to remedy this and make msysgit work ...
1
vote
1answer
289 views

How do I achieve passwordless CVS updates?

I'm working on some code from my computer at home and would like to do CVS updates to a remote server. When I'm at work I don't need to type in a password, but at home each time I need to type in my ...
2
votes
2answers
412 views

How to use ssh-agent.exe without cygwin for pass-phrase protected private key?

I would like to access a SSH service with pass-phrase protected private key in Windows using ssh-agent.exe. So far I able to utilize ssh-agent.exe by changing environment setting in my home account ...
6
votes
2answers
9k views

change default username when ssh to another pc [duplicate]

When I ssh between different pcs I can omit my username (tom) and just type ssh pc_name instead of ssh tom@pc_name I like this feature, and have got into the habit of using it. Unfortunately, ...
10
votes
2answers
1k views

How to determine the port allocated on the server for a dynamically bound openssh reverse tunnel?

When creating reverse tunnels on recent versions of OpenSSH a remote port of 0 can be given to bind any available port: -R [bind_address:]port:host:hostport ... If the port argument is ...
1
vote
1answer
1k views

Connecting to different ports via scp and ssh - why a different flag?

I routinely run sshd on a non-standard port (ie, not 22). When ssh-ing to my machine I use the -p flag. However, when using scp, the flag is -P (lowercase vs uppercase). Since they come out of the ...
3
votes
2answers
1k views

Debian Squeeze 6.0.1 - configuration files missing after ssh installation

I had installed ssh but something went wrong and I uninstalled it. I removed the SSH configuration files by hand (I deleted all /etc/ssh folder). After ssh installation (I mean apt-get install ssh) I ...
0
votes
1answer
229 views

Openssh auto login is not working

I am using Debian 6.0 and I am trying to auto login into Debian 4.0. I generated rsa keys with ssh-keygen on Debian 6.0 and I copied id_rsa on Debian 4.0 in /root/.ssh/authorized_keys. When I tried to ...
3
votes
1answer
2k views

Connecting FileZilla to SFTP, OpenSSH

I've a Ubuntu machine where is installed OpenSSH. I want upload/download files there thru SFTP with FileZilla. SSH works good with putty etc, but when I try to connect with FileZilla, I get Status: ...
1
vote
0answers
182 views

ssh: known_hosts forwarding

In running ssh with agent forwarding. This allows me to do hg/git pulls from my server from systems that I have been authorized to based on my local i.e ssh -A myserver hg clone ...
1
vote
1answer
573 views

Dynamic Proxy with OpenSSH and windows

Ok, so the goal is to be able to utilize the dynamic proxy method that OpenSSH provides with the -D option on the Linux client, such that any connection requests made against a local port are ...
4
votes
3answers
3k views

Configure OSX Firewall to Allow SSH Server?

If I turn on my OSX firewall, ssh is disallowed. If I turn it off, ssh can connect just fine. These are the settings from the ssh host: while I don't know what I'm doing, I figured that giving ...
4
votes
1answer
2k views

How to reduce latency with openssh?

I'm ssh-ing to a server several thousands kilometers away, and every keystroke takes 500-800ms, so it is getting annoying. Is it possible to have my ssh client cache each line I type locally and ...
0
votes
1answer
106 views

How can I change the directory in which I land when accessing a computer via SSH?

I always enter the computer in this directory: /cygdrive/c/Program Files/ICW/var How can I change that?
26
votes
6answers
8k views

Is there a way for one SSH config file to include another one?

In case it matters: OS: Ubuntu 10.04 SSH: OpenSSH_5.3p1 Debian-3ubuntu5 I'd like one SSH config file to include another one. The use case would be to define whatever I want in my default ...
8
votes
1answer
3k views

How to add pointers to filesystems outside the chrooted environment - using chrooted SFTP via OpenSSH

So, I'm pretty sure this is true, but I haven't found a specifically detailed independent reference that directly answers my question. Question being: How can I add access to a resource that is ...
1
vote
2answers
4k views

Remove all the keys (credentials) from a PC

I gonna have to change my Windows PC with a colleague at office. I've added a few rsa ssh keys while playing around with git, github, heroku and a few others. What'd be the best way to remove all my ...
1
vote
2answers
236 views

Change OpenSSH account password in Linux

I suppose that my main Linux user account password serves as my SSH password as well. Is there a way I can modify this? As it turns out, I'd like to have a REALLY secure SSH password for obvious ...
2
votes
1answer
368 views

known_hosts file doesn't get populated anymore

I had a populated known_hosts file. I was editing it and for a split second I saw a permission error when I saved it. I went to check what the error was and the known_hosts file was blank. Now if I ...
1
vote
1answer
454 views

Console based speech program that can be run via SSH on Windows 7

I have just installed Cygwin with OpenSSH on my computer, and would like to have a speech program that I can run from a SSH session in a console, similar to the say command in Mac OS X. I have tried ...
1
vote
3answers
4k views

Why is OpenSSH not using the user specified in ssh_config?

I'm using OpenSSH from a Windows machine to connect to a Linux Mint 9 box. My Windows user name doesn't match the ssh target's user name, so I'm trying to specify the user to use for login using ...
3
votes
2answers
1k views

How to stop adding IP from EC2 to known_hosts for ssh?

I start/stop lots of new instances as I'm learning to use Amazon EC2. Every temporary instance is added to the known_hosts file. Is this ever a problem for others who use EC2 a lot? I'd like to tell ...
5
votes
6answers
8k views

How to tunnel port 25565 through SSH?

I want to play a game which is hosted on port 25565 (minecraft!), but my university firewall does not allow this port. I have a dedicated server running linux not too far from uni, so I think there's ...
0
votes
3answers
4k views

No /etc/init.d/sshd file? (Ubuntu / EC2)

On a fresh EC2 instance running Ubuntu, I see that there's no /etc/init.d/sshd file. I tried sudo apt-get install openssh-server And it shows that openssh-server is already the newest version. How ...
4
votes
1answer
56 views

Making SSH terminate on error

I have a script that is causing a bunch of ssh -D (socks proxy) connections to open. Sometimes one of them is trying to open on a port that is in use, in which case it prints an error. ...
2
votes
1answer
167 views

ssh_config -t option

Is there a way to add a host to ssh_config with a rule that emulates the -t option in the ssh command?
7
votes
1answer
4k views

Checking ssh keys have passphrases

I have a bunch of users, who with SSH keys have access to accounts on other servers. Currently I have a script which collects up the ssh public keys and distributes them to the correct account on the ...