![]() ![]() NOTE: If you’ve a Debian remote host you MUST use this instead: myremote ~ # cat ~/id_rsa.pub >. sshĥ) Now copy your ssh public key into authorized keys file and delete it when finished, so: myremote ~ # cat ~/id_rsa.pub >. If you get something like this you need to create the dir, so: myremote ~ # mkdir. Ls: cannot access /root/.ssh: No such file or directory ![]() ssh dir doesn’t exist you need to create it myremote ~ # ls -la ~/.ssh Last login: Wed May xx xx:xx:xx xxxx 2009 from mylocal on sshĤ) Check out. So now you’ve your public key copied fine, let’s connect to remote host nowģ) Connect to your remote machine (myremote) mylocal:~# ssh (root or your remote username) Xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx key's randomart image is:Ģ) Now you need to copy the public key to your remote host, do NOT copy the private key, obviously use scp to do this mylocal:~# scp ~/.ssh/id_rsa.pub myremote:~ Your public key has been saved in /root/.ssh/id_rsa.pub. Your identification has been saved in /root/.ssh/id_rsa. Myremote – the host where you want to connect toġ) From mylocal create an ssh rsa key pair for host validation, here’s how: mylocal:~# ssh-keygen -t rsaĮnter file in which to save the key (/root/.ssh/id_rsa):Įnter passphrase (empty for no passphrase): Mylocal – the host from where you want to connect
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |