
Instead of an error message, you will see something like: Your identification has been saved in /path/to/key.


This will save your private key in /path/to/key and the public key in /path/to/key.pub. Specify a file, at a location where you have write access: ssh-keygen -t rsa -b 4096 -C -f /path/to/key PS>ssh-keygen -t rsa -b 4096 -C public/private rsa key pair.
Ssh copy id no known hosts software#
If I give a location for the file and run ssh -vT doesn't check the custom location for the public key to use OpenSSH_7.1p1, OpenSSL 1.0.2d ĭebug1: Reading configuration data /etc/ssh/ssh_configĭebug1: Connecting to port 22.ĭebug1: key_load_public: No such file or directoryĭebug1: identity file /.ssh/id_rsa type -1ĭebug1: identity file /.ssh/id_rsa-cert type -1ĭebug1: identity file /.ssh/id_dsa type -1ĭebug1: identity file /.ssh/id_dsa-cert type -1ĭebug1: identity file /.ssh/id_ecdsa type -1ĭebug1: identity file /.ssh/id_ecdsa-cert type -1ĭebug1: identity file /.ssh/id_ed25519 type -1ĭebug1: identity file /.ssh/id_ed25519-cert type -1ĭebug1: Enabling compatibility mode for protocol 2.0ĭebug1: Local version string SSH-2.0-OpenSSH_7.1ĭebug1: Remote protocol version 2.0, remote software version libssh-0.7.0ĭebug1: Authenticating to :22 as 'git'ĭebug1: expecting SSH2_MSG_KEX_ECDH_REPLYĭebug1: Server host key: ssh-rsa SHA256:>ĭebug1: Host '' is known and matches the RSA host key.ĭebug1: Authentications that can continue: publickeyĭebug1: Next authentication method: publickeyĭebug1: Trying private key: /.ssh/id_ecdsaĭebug1: Trying private key: /.ssh/id_ed25519ĭebug1: No more authentication methods to try. Saving key "//.ssh/id_rsa" failed: No such file or directory

PS>ssh-keygen -t rsa -b 4096 -C public/private rsa key pair.Įnter file in which to save the key (//.ssh/id_rsa):Ĭould not create directory '//.ssh': Read-only file systemĮnter passphrase (empty for no passphrase): Trying to Generate a public key for my git.
