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

3
votes
1answer
1k views

Convert ssh public key to gpg

I have someone's ssh public key and I want to encrypt a message with it so that he is the only one who can read it. However, a simple import with gpg --import doesn't work because the format is ...
1
vote
2answers
3k views

Create a new known_hosts file for openSSH in windows

So i have OpenSSH in windows 7 at a university and i am basicly having this problem: When i first use SSH it is trying to create the known_hosts file on my university network drive H: But this is ...
2
votes
1answer
378 views

Is there any way to recover an environment variable?

I recently installed openssh on my Windows 7 machine. The install overwrote my Path variable and blew away all of the other paths I use in the command line. I probably have 50 paths in there and it is ...
2
votes
1answer
177 views

Having trouble logging onto my ssh server

I feel pretty dumb asking this but I have been working on this for a couple days now (on and off) and I cannot figure it out. I have just installed lubuntu on my machine and I can ssh locally onto it ...
1
vote
1answer
443 views

ASC key file, login on cent OS using WINSCP

My system admin given me a file with extension .asc. to loging to the Server, but i am unable to login , as WINSCP or putty says this key is in different format, is another tool like wnscp and putty ...
2
votes
1answer
4k 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. ...
6
votes
1answer
2k 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 ...
7
votes
5answers
9k 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
490 views

SSH server installation on windows

I'm working on a SSH project. For that I setup everything on client side. But I'm facing a problem on my SSH server. I tried some SSH servers like OpenSSH. I installed the OpenSSH server on my ...
0
votes
2answers
3k 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
899 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
2k 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
4k 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
3k 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
2k 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
3k 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
2k 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
820 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
54 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: ...
3
votes
3answers
10k 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
373 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 ...
2
votes
1answer
2k 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
904 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 ...
4
votes
2answers
4k 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
279 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
661 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
250 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
71 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
5k 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
523 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
2k 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
284 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
1k 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
597 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
3answers
170 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
772 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
80 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 ...
2
votes
3answers
20k 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
1k 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
266 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
196 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
635 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
571 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
372 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 ...