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.

1137 questions
1206
votes
7 answers

How do I remove the passphrase for the SSH key without having to create a new key?

I set a passphrase when creating a new SSH key on my laptop. But, as I realise now, this is quite painful when you are trying to commit (Git and SVN) to a remote location over SSH many times in an hour. One way I can think of is, delete my SSH keys…
btbytes
  • 75
  • 3
  • 4
  • 10
970
votes
21 answers

Best way to use multiple SSH private keys on one client

I want to use multiple private keys to connect to different servers or different portions of the same server (my uses are system administration of server, administration of Git, and normal Git usage within the same server). I tried simply stacking…
Justin
  • 9,773
  • 3
  • 14
  • 7
334
votes
5 answers

How do I verify/check/test/validate my SSH passphrase?

I think I forgot the passphrase for my SSH key, but I have a hunch what it might be. How do I check if I'm right?
joachim
  • 23,193
  • 11
  • 34
  • 41
249
votes
25 answers

SSH Private Key Permissions using Git GUI or ssh-keygen are too open

Recently I've been unable to clone or push to github, and I'm trying to find the root cause. This is on windows I have cygwin + git as well as msysgit. Msysgit was installed with the following options: OpenSSH Use Git from Windows Command…
Ben Scheirman
  • 39,034
  • 20
  • 96
  • 135
220
votes
22 answers

Automatically enter SSH password with script

I need to create a script that automatically inputs a password to OpenSSH ssh client. Let's say I need to SSH into myname@somehost with the password a1234b. I've already tried... #~/bin/myssh.sh ssh myname@somehost a1234b ...but this does not…
user1467855
  • 3,193
  • 5
  • 25
  • 29
214
votes
3 answers

Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058"

When I try to start the ssh-agent on Windows 10 via PowerShell (with elevated right or without) by entering Start-Service ssh-agent I get the error unable to start ssh-agent service, error :1058 When I check of the service is running via…
quervernetzt
  • 5,739
  • 4
  • 17
  • 36
159
votes
8 answers

Convert pem key to ssh-rsa format

I have a certificate in der format, from it with this command I generate a public key: openssl x509 -inform der -in ejbcacert.cer -noout -pubkey > pub1key.pub Which results in this: -----BEGIN PUBLIC…
Adrya
  • 2,877
  • 8
  • 27
  • 28
151
votes
3 answers

Use PPK file in Mac Terminal to connect to remote connection over SSH

I have been using Putty on Windows XP and used the .ppk file to connect to my Linux servers (several servers). On the servers I have the following folder and file ~/.ssh/authorized_keys I now want to use a Mac to connect via the terminal. I have set…
Anand
  • 3,928
  • 6
  • 39
  • 50
128
votes
1 answer

What is Pseudo TTY-Allocation? (SSH and Github)

I was trying to setup an SSH connection with Github following this tutorial:https://help.github.com/articles/testing-your-ssh-connection/ I came across the following command: $ ssh -T git@github.com # Attempts to ssh to github Curious, I looked…
user2316667
  • 4,826
  • 11
  • 40
  • 68
81
votes
4 answers

What command do I use to see what the ECDSA key fingerprint of my server is?

I see stuff all over Google on how to see the RSA key fingerprint, but not the ECDSA fingerprint.
trusktr
  • 34,715
  • 41
  • 148
  • 226
70
votes
12 answers

How to ssh to localhost without password?

EDIT: Putting exactly what was done I need to SSH localhost without password, the usual way of doing it (with public keys) do not work. user@PC:~$ rm -rf .ssh/* user@PC:~$ ssh-keygen -t rsa > /dev/null Enter file in which to save the key…
canesin
  • 1,767
  • 2
  • 16
  • 29
69
votes
9 answers

Setting up OpenSSH for Windows using public key authentication

I am having issues setting up OpenSSH for Windows, using public key authentication. I have this working on my local desktop and can ssh with a key from Unix machines or other OpenSSH for Windows machines. I have replicated the build onto a server, I…
Cambolie
  • 865
  • 1
  • 8
  • 14
66
votes
2 answers

Pageant does not load SSH-2 key generated with GitBash

The implementation of key handling with (Tortoise)Git for Windows confuses me. As far as I understood, you can implement with either ssh.exe (gits own ssh program), where you can then choose an ssh key per host in your ssh_config in the 'faked' home…
atripes
  • 1,525
  • 3
  • 18
  • 22
65
votes
3 answers

Openssh Private Key to RSA Private Key

(I am using MAC) My id_rsa starts with -----BEGIN OPENSSH PRIVATE KEY----- but I expect it to starts with -----BEGIN RSA PRIVATE KEY----- I have send my id_rsa.pub to server administrator to get the access to server, so I don't want to generate a…
Eleanor
  • 1,437
  • 3
  • 10
  • 20
64
votes
3 answers

Error when using scp command "bash: scp: command not found"

I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost…
Rivers Yang
  • 651
  • 1
  • 5
  • 4
1
2 3
75 76