The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
3answers
120 views

How to understand ssh-keygen and ssh-copy-id?

As far as my understanding, machine(A) ssh-keygen generates a key, and ssh-copy-id gives this key to another machine (B), is it? But when this is done, to test whether this is done or not is using ...
3
votes
1answer
58 views

Check presence of a hostname under custom port in known_hosts

I need to add a check if the hostname is already present in the known_hosts. Normally I would do something like that: ssh-keygen -H -F hostname However, that does not seem to work for me in this ...
1
vote
1answer
39 views

How to generate SSHFP records with OpenWrt/Dropbear?

How to generate SSHFP records for a Dropbear instance at OpenWrt? I have dropbearconvert and openssh-keygen installed, but nothing works. Always invalid format or similar errors. There are two host ...
3
votes
1answer
111 views

Can I build a Docker container from Dockerfile in an interactive way with allocation of some pseudo TTY?

I build container from below Dockerfile: FROM ubuntu:14.04 ... RUN apt-get update && apt-get install -y vim #RUN ssh-keygen -f /root/.ssh/id_rsa -N strongpass123$%^ RUN ssh-keygen -f /root/....
1
vote
1answer
56 views

pem file difference - ssh-keygen vs openssl

I generated my public/private key pair using ssh-keygen -t rsa -b 2048 -v and then needed a .pem file and followed this http://serverfault.com/questions/706336/how-to-get-a-pem-file-from-ssh-key-...
0
votes
0answers
33 views

RSA key generation on remote server

I would like to generate RSA key on a remote host for a different user than I use for logging into it. Syntax looks something like below. Looks like ssh-keygen_ doesn't have any option to specify ...
2
votes
1answer
259 views

Converting SSH2 RSA Private Key to .pem using openssl

When i try to convert SSH2 RSA format based private key to .pem format, using openssl i am getting the below error. [jbadmin@xxxxxxx .ssh2]$ openssl req -x509 -key /home/jbadmin/.ssh2/id_rsa_2048_a -...
2
votes
1answer
79 views

How to know if I can use ssh keypairs?

After running successfully, my build script attempts to copy the final binary onto my FTP server using the scp command. Since the build takes a while, I don't want to be prompted for my password every ...
1
vote
2answers
48 views

ssh public key not getting copied over

I created a public/private key pair using the ssh-keygen -t rsa in my ~/.ssh folder. I then copied the key over using the ssh-copy-id username@remoteserver.com command and received this notification. ...
0
votes
0answers
19 views

Why does `ssh-keygen` keep asking for keyfile name, even after passing the `-f output_keyfile` option?

I'm trying to automate generating an SSH key using ssh-keygen from OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015 (as reported by ssh -V). Running ArchLinux 4.2.5-1-ARCH (as reported by uname -r). First ...
0
votes
0answers
22 views

Why wont my ssh key work on a different port? [duplicate]

Edit: This answer, fixed my problem. I have used ssh-copy-id to move my ssh key to my server. I have changed it so that my server is listening for ssh connections on port 50505 instead of the ...
0
votes
1answer
93 views

Need Info on linux command ssh-keygen -t rsa -b 4096 -C “your_email@example.com”

I have to access personal git repository at the university . I have been asked to Generate SSH key. I am using this command to generate an SSH key: ssh-keygen -t rsa -b 4096 -C "your_email@example....
0
votes
2answers
400 views

How to generate SSH1 key using ssh-keygen for SSH2

I have 2 machines running on Linux. One has ssh2 configured SOURCE and another has ssh1 configured DESTINATION. How do I generate a key pair in SOURCE whose public key can be understood by DESTINATION?...
0
votes
1answer
116 views

How to change password of an ssh identity file

Can I, and in that case how can I, change the password of an SSH identity file without having to generate a new key and setting up it all over again?
0
votes
0answers
126 views

Very slow SSH connection unrelated to GSSAPIAuthentication option

I am having trouble connecting to remote machine through SSH machine (I cannot change SSH configuration on that machine though I can login without any delay from other machines). I have commented out ...
-2
votes
1answer
576 views

SSH error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I ran rsync (cygwin) and got this error. I think they changed the Red Hat Linux OS from version 5 to version 6, last night. Would that be the cause of this error message? What do I need to do to fix ...
0
votes
1answer
498 views

Fedora, where to put my ssh keys to login? [duplicate]

I just recently started a VPS using Fedora. Upon creation of the VPS I was asked if I wanted to use SSH keys (which I did). Now, to connect as root to the VPS, I do not need to enter a password. Now ...
0
votes
0answers
99 views

ssh without password multiple shared hosts [closed]

Hey I know this is a simple task but i was getting some trouble do to my setup. I have 3 servers on which i want to be able to ssh without being prompt a password. But the thing is each of those ...
0
votes
1answer
87 views

SFTP Chroot and SSH

I have a chrooted SFTP user group to access my home server. The chroot location is /mnt/, mostly because it is already owned by root and is where I have mounted the external HDD I want to the chrooted ...
3
votes
3answers
748 views

How to merge keys, or handle keys with the same file name?

I created a key for logging into a server (using ssh-keygen) with the name id_rsa, and so in my .ssh directory there is id_rsa.pub and id_rsa. The reason I used this name, is because when I tried ...
6
votes
2answers
5k views

How to decrypt hostnames of a crypted .ssh/known_hosts with a list of the hostnames?

I try to find a script to decrypt (unhash) the ssh hostnames in the known_hosts file by passing a list of the hostnamses. So, to do exactly the reverse of: ssh-keygen -H -f known_hosts Or also, to ...
4
votes
2answers
148 views

What elements affects the key pairs generated by ssh-keygen?

I use the ssh-keygen -t rsa to generate the RSA key pairs. I see that in the id_rsa.pub file, I see the username and the hostname. But I want to know that what elements will affects the key pairs. ...
1
vote
1answer
2k views

ssh-keygen -y error: load failed

I want to check correctness of a pair of RSA key. As far as I know, I can crate a public key from a private key by using the below command, and then compare two public key if are equal or not: ssh-...
0
votes
2answers
243 views

How to enable passwordless auth to remote server as a different user?

This may seem quite trivial but what I've done doesn't seem to solve the problem. I'm connecting to a remote server as tom who (obviously) exists on the remote server but not the local server. I ...
29
votes
2answers
5k views

What's the purpose of the randomart image for user (not host) SSH keys?

The ssh-keygen generates the following output: The key fingerprint is: dd:e7:25:b3:e2:5b:d9:f0:25:28:9d:50:a2:c9:44:97 user@machine The key's randomart image is: +--[ RSA 2048]----+ | .o o.. ...
3
votes
2answers
80 views

Is there a one liner which can list public key fingerprints with authorized_keys as input?

I'd like to audit the authorized_keys file on a number of servers and match them with known AWS key fingerprints. Is there a one-liner which incorporates ssh-keygen -lf which will output the ...
0
votes
1answer
66 views

ssh-keygen utility

Is this possible to change the path that ssh-keygen use the files from? The default one is $HOME/.ssh/ so is this possible to change this? Like for example when using ssh-keygen -R to remove the host ...
0
votes
3answers
1k views

Is there a central repository of SSH keys on a system? Does SSH keygen put the private key in that location?

I just generated a public and private key with ssh key gen. I uploaded the public key onto a gitlab (basically a clone of git hub) system for my university and got an email saying that I successfully ...
16
votes
1answer
17k views

Convert OpenSSH private key into SSH2 private key

Is there a way to convert existing pair of OpenSSH keys to the SSH2 (ssh.com format) pair of keys? UPD: since there are some answers about ssh-keygen suddenly appeared, I'll explain where I came ...