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

63
votes
4answers
46k views

How to make ssh tunnel open to public?

Well, referring back to this question, I am running the command ssh -R 8080:localhost:80 -N root@example.com on a Mac. Yet the port that is being tunneled is not working publicly. I am running such ...
11
votes
7answers
14k 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 ...
7
votes
2answers
3k views

How to make ssh log in as the right user?

I use ssh on a variety of machines, mainly linux. Accounts on these machines vary in naming scheme: if my name is First Last, then I have accounts: first, flast, last_f, lastf, and sometimes I need to ...
1
vote
1answer
201 views

OpenSSH, FreeBSD screen overwrite when closing application

I installed a fresh FreeBSD 10 on a VM and connected via SSH and I've noticed that whenever i close a program (e.g., htop, top, nano etc) the contents of the session gets overwritten. This doesn't ...
0
votes
2answers
97 views

Generate RSAv2 key in OpenSSH format in Windows

I have to generate a key, RSA v2 in OpenSSH format. I am a bit confused. I am trying to generate it using Putty Key Generator. There I see an option SSH2-RSA, SSH1-RSA. So is SSH2-RSA the RSA2 key or ...
0
votes
1answer
1k views

SSH doesn't work on Ubuntu

I am trying to connect to my webserver via ssh but I can't. When I insert the password nothing happens. This is what I see: # ssh username@username.example.com username@username.example.com's ...
0
votes
2answers
639 views

Building OpenSSH for OS X?

I have on OS X 10.5 PowerMac (PowerPC) I use for testing. Apple has abandoned support for it. Others want access to the box for testing, so I need to build and install an updated OpenSSH. I visited ...
76
votes
9answers
177k views

Remove key from known_hosts

I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the ...
44
votes
3answers
10k views

SHA256 ssh fingerprint given by the client but only md5 fingerprint known for server

When connecting to a new/unknown server (with recent OpenSSH) like: ssh example.com You get the fingerprint like that: The authenticity of host 'example.org (192.0.2.42)' can't be established. RSA ...
11
votes
3answers
36k views

How to uninstall/reinstall cygwin to use the sshd?

I installed cygwin/sshd without good results. I removed the c:\cygwin directory to reinstall. I removed the sshd Administrator user by hand. I reinstalled the cygwin again, then run the 'ssh-host-...
21
votes
9answers
38k views

Why does the “password” prompt take forever when I SSH into my Ubuntu 9.05 server?

Answer: It was, in fact, performing reverse DNS resolution. Based on the suggestions below and this article, I added "UseDNS no" to my sshd_config, rebooted ssh, and now the password prompt displays ...
13
votes
6answers
47k 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 &...
2
votes
1answer
258 views

Can I get OpenSSH's sshd to accept a login for a non-existent user?

I'm trying to set up sshd to do some funky things on a dedicated server. (Which is to say, don't worry about why I'm asking such a strange question; I'm just experimenting to see how I can abuse ...
11
votes
2answers
2k 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 `...
5
votes
5answers
9k views

Cygwin sshd did not start due to a logon failure

After a cygwin sshd install, sshd service fails with: Error 1069: The service did not start due to a logon failure I try to give cyg_server standard user and admin access. The error is the same ...
10
votes
1answer
10k views

PubkeyAcceptedKeyTypes and ssh-dsa key type

I'm trying to test the order in which keys are tried. One of the system's users is using DSA, so I'm trying to test it as an option. I'm getting a Bad key types. $ ssh -vv -p 1522 jwalton@192.168.1....
4
votes
1answer
834 views

Howto force ssh to use a specific private key?

With ssh -i <private key filename> you can instruct ssh to use an extra private key to try authentication. The documentation is not clear on how to explicitly use only that key.
2
votes
1answer
60 views

OpenSSH server refuses to accept key authentication unless logged into server locally

My server is running Ubuntu-Server and ahs OpenSSH-Server installed on it. I set up the /etc/ssh/sshd_config file to accept and require rsa keys, it looks for keys in the 'AuthorizedKeys ~/.ssh/...
2
votes
2answers
6k views

Unable to connect to SSH after generated public key and private key

Can some one help ? I have installed openssh (version OpenSSH_6.8p1) in windows 7 and I have generated the public and private keys, however I'm not able to connect to that SSH. I'm getting an error "...
2
votes
1answer
157 views

What is the keyword in .ssh/config for tunneling in the background?

In command line option, we can specify -N -f to let it run in the background. How about the identical keywords in .ssh/config? Instead of doing ssh dest -N -f -L 1337:localhost:1337 I would like to ...
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 ...
0
votes
2answers
541 views

generating keys for SSH

From the Open-SSH Documentation what does username@remotehost mean in the following: *By default the public key is saved in the file ~/.ssh/id_dsa.pub, while ~/.ssh/id_dsa is the private key. Now ...
0
votes
1answer
461 views

Can't ssh to my iphone: ssh_exchange_identification: Connection closed by remote host

I'm trying to establish ssh connection from my laptop(macbookpro) to my iphone. when trying to copy keys from laptop to iphone getting: $ ssh-copy-id -i ~/.ssh/id_rsa.pub mobile@iphone.local /usr/...
0
votes
1answer
467 views

how to start ssh server on iOS?

I can't connect to my iphone via ssh. device is jailbroken and has openssh installed: $ ssh -V OpenSSH 6.7p1, OpenSSL 0.9.8zg 11 Jun 2015 I've found out that for some reason it doesn't have the ...