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

1
vote
1answer
3k views

sshfs “Connection reset by peer”

ssh -i ~/keys/id_rsa root@192.168.1.201 Enter passphrase for key '/home/avin/keys/id_rsa': Last login: Tue Jul 17 11:01:28 2012 from 192.168.1.240 [root@rsh_management ~]# exit logout it's ok i'm ...
0
votes
1answer
1k views

openssh on Windows 7 server, putty displays “refused our key”

I installed openssh as a service with the help of cygwin using this tutorial I can ssh into localhost from cygwin. However, when I try to do this from putty, I get a "server refused our key" error. ...
4
votes
1answer
1k views

Nohup over ssh won't return

I am trying to do [me@myPc]$ ssh me@server "nohup myBashScript.sh &" My goal is to launch the process on the server, and then immediately return. It is not working: The job is started on ...
4
votes
5answers
5k views

How to edit known_hosts when several hosts share the same IP and DNS name?

I regularly ssh into a computer which is a dual-boot OS X / Linux computer. The two OS instance do not share the same host key, so they can be seen as two host sharing the same IP and DNS. Let's say ...
1
vote
0answers
364 views

SSH server installation on windows

I am working on one ssh project, for that I setup everything on client side, but I am facing problem with ssh server. I tried some ssh servers(open source) like openssh.I installed openssh server on ...
0
votes
2answers
2k views

What's missing from my sftp chroot setup?

I've followed a half-dozen different tutorials on setting up chroot for sftp users, but my jailed users can still browse up into parent directories. I suspect my permissions aren't set up correctly, ...
0
votes
1answer
747 views

ssh localhost works, but ssh [external url of localhost] doesn't

I'm trying to work out how to ssh into a machine at work (it runs an RHEL-based distribution with OpenSSH 5.3). I have been given instructions on how to set up keys, permissions, etc., which have ...
1
vote
1answer
950 views

How to restrict SSH root login, but allow some exceptions

in openssh, you can restrict root login (PermitRootLogin no) but can it have an exception?
1
vote
2answers
2k views

I get a permission denied (public key) when I try to scp in ssh

I can login to the remote server via ssh and navigate through it's file system, but as soon as I try to scp a file from the server to my laptop I get an error message. Example: user@server:/file$ ...
0
votes
1answer
2k views

ssh-agent and ssh-add

Does anyone know how to make it so that I don't have to add my keys manually using ssh-add? Every time I log into my Ubuntu server box, I have to start the ssh-agent and then use ssh-add before my ...
2
votes
1answer
1k views

What's the principle behind OpenSSH subsystems (or command= option)?

In OpenSSH one can declare a subsystem in the configuration file (/etc/ssh/sshd_config) or force a command such as svnserve to be executed by including this in the authorized_keys line for a ...
2
votes
1answer
2k views

Is it better to run OpenSSH in cygwin or freesshd (on Windows Server 2003)

I found an article on Petri that explains how to install OpenSSH to Windows via cygwin. I know that OpenSSH is basically the standard SSH server for *nix distros and was wondering if that means it's ...
1
vote
1answer
1k views

sshd_config AllowUsers Should Root Be Allowed?

I am asking here as i do not want to get locked out of my server. I do not want to allow root login to ssh, however if a user enters a "su" command i want them to be able to become root. So do i ...
3
votes
1answer
351 views

Why would anyone install openssh-client instead of openssh-server? [closed]

I installed openssh-server on two pc's. I can connect from both from the one to the other. So if openssh-server sends as well as receives ssh, why would you install the openssh-client, just to make ...
0
votes
0answers
47 views

Switching user in openssh using PAM

I'm trying to write a PAModule which will use compare the inserted username against a file. If the username exists in the file, it will change the username to root (since the username does not really ...
1
vote
4answers
4k views

sshd refuse connection?

For some reason I cannot access from my vitrual machine my remote virtual server at a server farm and instead it gives me this error message: OpenSSH_5.9p1, OpenSSL 1.0.0g 18 Jan 2012 debug1: ...
2
votes
2answers
6k views

One user can use SSHFS, other user gets “remote host has disconnected”

I have two users with valid SSH accounts on a server. Both users can login via ssh successfully. When trying to mount SSHFS, usera can mount with no problems, while userb gets the error: remote host ...
1
vote
2answers
306 views

SSH access via different ports on LAN vs WAN. Is it possible? How to configure?

I want to configure OpenSSH to use port 22 for LAN clients, but to use a non-standard port for all outside addresses. How would this be done? What I have in mind is imagined to be like this: Match ...
1
vote
1answer
1k views

ssh using certificates — can you rename id_rsa file?

When using certificate authentication with ssh, the instructions I have found indicate you should create a key-pair as id_rsa.pub && id_rsa. The public key is then sent to the remote system ...
0
votes
0answers
692 views

OpenSSH Server won't start on Windows 7

I have followed this example to setup an SFTP server on Windows 7. I have done this before on XP and it worked a treat, and the process seemed to go OK on Windows 7 but now I can't get the OpenSSH ...
3
votes
1answer
2k views

1and1 ssh - connection refused

I'm having troubles connecting through SSH to my 1&1 account. When I try to connect with command userXXX@host -p22 -vv I have the following output: OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL ...
1
vote
1answer
222 views

Forwarding X through 2 servers (4 boxes involved)

I'm trying to run a web browser on my desktop machine at work but display on my local laptop. To connect via ssh, I need to go through 2 servers. A: Laptop wanting to display browser that runs on ...
0
votes
1answer
487 views

SSH hangs on exit with background jobs - inconsistently

On different Linux boxes, I see different behavior with respect to SSH sessions hanging on exit when there are background jobs running. If I do exactly the same thing $ for f in 1 2 3 4 5; do echo ...
3
votes
1answer
2k views

Can't write or download to SFTP on Ubuntu Server 10.04

I'm having a problem setting up SFTP with an Ubuntu Server 10.04 LTS x64. I use openSSH with public key authentication, I can login with SSH perfectly with the keys no problem. I can also connect to ...
0
votes
3answers
202 views

Reach computer behind a NAT or Proxy

I have a home PC connected through twoway satellite modem. I cant reach from outside, so after a some research I found a solution which is reverse ssh tunneling. but I have a few question regarding ...
0
votes
1answer
66 views

How can I set up a “remote pair-coding” environment linux to linux?

I did some research on how to enable a pair-coding environment remotely so someone else on their MacOx/Linux box could view my screen (I code using vim + the rails plugin). I read Evan Light's blog ...
2
votes
3answers
1k views

Can only ssh into Ubuntu 12.04 alpha machine when logged into console

I recently installed the latest Ubuntu 12.04 64bit alpha (2?) onto a VMware virtual machine in order to check things out. One strange thing I've encountered is that I can only successfully ssh into ...
2
votes
3answers
3k views

SFTP ChRoot result in broken pipe

I have a website that I want to add some restricted access to a sub-folder. For this, I've decided to use CHROOT with SFTP (I mostly followed this link : ...
0
votes
2answers
441 views

Small delay while connecting to virtual SSH (residing on the same machine)

I have set up a virtual machine - Debian 6.0.4 - on my Windows 7 host OS. I use VirtualBox as software. Recently I have started to play with ssh but I have noticed that when I login to the virtual ...
4
votes
1answer
1k views

What is a GPG with “authenticate” capability used for?

GnuPG subkeys can be flagged with three kind of capabilities: Sign, Encrypt and Authenticate. While the first two actions are widely used and documented, the authenticate action is somehow ...
0
votes
1answer
257 views

OpenSSH: Restriction on Local Port Forwarding for groups

I'm trying to restrict users who connect via ssh on a server (with OpenSSH) to do local port forwarding on certain ports only. I've found that setting the permitopen="address:port" option in their ...
4
votes
1answer
2k views

How to diagnose proxy over ssh?

Recently I've tried to set up proxy using ssh -D 2454 username@servername (to browse the Internet through ssh tunnel), but failed to do this correctly. I would be happy for any suggestions and/or ...
0
votes
1answer
865 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
422 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
141 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
592 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
77 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
4answers
15k 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
533 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
237 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
165 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
485 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
425 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
326 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
956 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
122 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 ...
7
votes
1answer
20k 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
635 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
2k 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: ...