Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get public ssh key

ssh-keygen
cat ~/.ssh/id_rsa.pub
Comment

ssh add public key inside server

nano ~/.ssh/authorized_keys
#then add your public key in the end (new line pls)
Comment

ssh - use public key to login

# generate ssh key first on your source host:
ssh-keygen -t rsa

# copy it to the remote/target host:
ssh-copy-id remote_username@server_ip_addressCopy

# if for some reason the above method unavailable, use:
cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
Comment

add ssh public key to server

ssh-copy-id -i $HOME/.ssh/id_rsa.pub user@server1.cyberciti.biz
Comment

what is role of public key in ssh

A public key that is copied to the SSH server(s). 
Anyone with a copy of the public key can encrypt data which 
can then only be read by the person who holds the corresponding private
key.
Comment

SSH public key

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDD3889tTsdyhHAakHJk3tIEwlFL6cL4i7XVBkOq+bvlvXyM+rzH+ZVpBUn8JBTjsACPkZvag4lR82qDlG2l4PKvDuUuGZVu5BIcAvUrVNroD8fs03eAuYme2oIfY8UHObzlXwsIOHMktJTs/EagHKuhW4ku+MxBdnX4a1gGIFj8zVL80yyJg7JAtlZtDe/wxKiHqCMb+tejtneYWHnHQBn0kv8tkr1LsodF1M6JVuYjF5V8cThN73PE6luOCa9AmZej0s0/oLprmINbyg+8Nk0JwqwkPiZvox+8m1o4ww02fhXuDRvapgku61/zgzbsGoBBDVaXdUsfWHObVblg4/0AujJWl20/qXAZkGDXgJ574ud0bFcgNJ2FVT9BzJDzxd46SQnDTelWr/jx5DY6sdsUH+VxFHC6SfzXWiSYLauDWTstWdIzxPy78RZ/9nDsavelLVNHahzhB7/T6qDTwSdCoDIrq3Jg69r1hda1CfSG27t4naSWMjEAZd4B3UEBMM= root@99153e607ab3
Comment

PREVIOUS NEXT
Code Example
Shell :: rsync delete old files 
Shell :: compare files linux 
Shell :: delete github repository without browser 
Shell :: ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries 
Shell :: teleport in vue 
Shell :: ros installation 
Shell :: cool welcome message linux 
Shell :: Command to create the private key and public using the openssl command : 
Shell :: append newline to file 
Shell :: how to get the type of something in powershell 
Shell :: créer un script linux 
Shell :: systemctl enable service 
Shell :: gnu octave ubuntu 
Shell :: centos 8 gui 
Shell :: git modify last commit but leave the commit message 
Shell :: .gitignore add files type 
Shell :: list all local branches off a branhc 
Shell :: Install GitLab using Docker Engine 
Shell :: hugo documentation 
Shell :: connect to aws ubuntu gui from windows 
Shell :: git submodule update --init --recursive 
Shell :: Concatenating Strings in Bash 
Shell :: redis dockerhub 
Shell :: composer download 
Shell :: linux systeme de fichier 
Shell :: Create Remote for Contributing to a GitHub project 
Shell :: powershell equivalent of rm 
Shell :: change or set password interactively in linux 
Shell :: batch color change 
Shell :: reac native /bin/sh: adb: command not found 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =