Questions tagged [openssh]

OpenSSH is the most widespread and de-facto standard implementation of SSH protocol. Both server and client tools are included.

OpenSSH is the most widespread and de-facto standard implementation of SSH protocol (Secure Shell). It is the default SSH toolset for most *nix systems. The OpenSSH is open source licensed under BSD license.

The OpenSSH suite includes:

  • sshd - SSH deamon
  • sftp-server - SFTP server subsystem (though in current versions of OpenSSH, the SFTP server is built into the sshd. The sftp-server binary is kept for a backwards compatibility)
  • ssh - SSH terminal client
  • sftp - SFTP client
  • scp - SCP client (internally it works as SCP server too)

Other tools included are ssh-add, ssh-agent, ssh-keysign, ssh-keyscan, ssh-keygen and ssh-keysign.

The OpenSSH server (the sshd) is configured using sshd_config files. The client tools are configured using ssh_config file.

1367 questions
24
votes
3 answers

SSH connection to Amazon EC2 in Linux

I am trying to ssh to amazon ec2 instance from shell using the following command ssh -vi sec.ppk ubuntu@ec2-xx.compute-1.amazonaws.com but failed to connect Here is the debug output generated by the above command OpenSSH_5.3p1 Debian-3ubuntu7,…
MA1
  • 2,767
  • 5
  • 35
  • 51
23
votes
9 answers

SSH: Connection closed by remote server

I am trying to ssh login to my remote server. But whenever i try to login through terminal using ssh command: ssh root@{ip_address} I get error: Connection closed by {ip_address} I checked hosts deny and hosts allow, there is nothing in the…
user2206724
  • 1,265
  • 3
  • 20
  • 38
22
votes
2 answers

Deriving an SSH Fingerprint from a Public Key in Python

I'm trying to understand the steps to take an OpenSSH public key like so: ssh-rsa…
Michael Gorsuch
  • 837
  • 1
  • 6
  • 14
21
votes
1 answer

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…
user89021
  • 14,784
  • 16
  • 53
  • 65
21
votes
6 answers

Error 1067- on start OpenSSH by net start opensshd in windows cmd

I try to start opensshd app by following command line: net start opensshd but i encounter below message after press enter in CMD: The OpenSSH Server service is starting. The OpenSSH Server service could not be started. A system error has…
user6209804
20
votes
4 answers

OpenSSH client hangs on logout when forwarding X connections

I setup Ubuntu Linux to run an OpenSSH server. My DSL router is port forwarding the SSH connection. When I use ssh -X myhost and then open some GUI program, then close the GUI application and exit, then the SSH logout hangs. -c seems to work…
admiles
  • 403
  • 1
  • 5
  • 12
19
votes
2 answers

Cannot parse privateKey: Unsupported key format

In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message: Cannot parse privateKey: Unsupported key format I validated the key with ssh command, it just works fine. But not with…
George Zhang
  • 371
  • 1
  • 2
  • 9
19
votes
2 answers

ssh/config: line 1: Bad configuration option: include

In my ~/.ssh/config I added the following: Include /Path/to/ssh.config And it gives error: ssh remoteEc-2 /Users/Me/.ssh/config: line 1: Bad configuration option: include /Users/Me/.ssh/config: terminating, 1 bad configuration options ssh -V…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
19
votes
2 answers

Upgrade openssh on OS X with homebrew for PCI compliance

The existing version of openssh on OS X 10.7.4 is SSH-2.0-OpenSSH_5.6, which is not, unfortunately, PCI Compliant. So, I need to upgrade it and I have been trying to do so with Homebrew. So far, what I've done is: brew tap homebrew/dupes brew…
leggo-my-eggo
  • 261
  • 1
  • 2
  • 12
18
votes
5 answers

What is the secure/correct way of adding www.github.com to the known_hosts file?

I want to access my github repositories via ssh. When I access the repository for the first time, I am asked If I want to add the github ssh server to my known_hosts file, which works fine. That request also shows me the RSA key fingerprint of that…
Knitschi
  • 2,822
  • 3
  • 32
  • 51
18
votes
4 answers

Accessing a git repository via ssh behind a firewall

I would like to access (clone/push/pull) a private (via ssh) git repository while behind a corporate firewall that only allows http proxy access. I have written a robust Java (daemon) program (based on the JSCh class library) that will allow me to…
pajato0
  • 3,628
  • 3
  • 31
  • 37
18
votes
5 answers

set environment variable SSH_ASKPASS or askpass in sudoers, resp

I'm trying to login to a ssh server and to execute something like: ssh user@domain.com 'sudo echo "foobar"' Unfortunately I'm getting an error: sudo: no tty present and no askpass program specified Google told me to either set the environment…
jan
  • 650
  • 1
  • 6
  • 17
17
votes
1 answer

How to resume failed/interrupted downloads with SFTP?

I am using GitBash and I am downloading a file greater than 10GB and it stopped halfway. I don't want to download the whole file again from start. How can I start the download from where it was stopped with SFTP? I have tried reget command it showed…
user8927198
17
votes
4 answers

How to generate ssh compatible id_rsa(.pub) from Java

I'm looking for a way to programmatically create ssh compatible id_rsa and id_rsa.pub files in Java. I got as far as creating the KeyPair: KeyPairGenerator generator; generator = KeyPairGenerator.getInstance("RSA"); // or: generator =…
Carsten
  • 4,204
  • 4
  • 32
  • 49
17
votes
6 answers

Running OpenSSH in an Alpine Docker Container

I've installed OpenSSH and now I wish to run it as described in the documentation by running /etc/init.d/sshd start. However it does not start: / # /etc/init.d/sshd start /bin/ash: /etc/init.d/sshd: not found Thoughts? P.S. / # ls -la…
Ole
  • 41,793
  • 59
  • 191
  • 359
1 2
3
91 92