Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ssh only key

#On Client:
ssh-keygen -t rsa
scp ~/.ssh/id_rsa.pub username@hostname:~/.ssh/authorized_keys

#On Server (to disable passwords and only allow key)
sudo nano /etc/ssh/sshd_config
#change "PasswordAuthentication yes" --> "PasswordAuthentication no"
#remove "#" in front of the line if present
Comment

PREVIOUS NEXT
Code Example
Shell :: git delete last commit 
Shell :: pushing image to docker hub 
Shell :: github update personal access token 
Shell :: du linux 
Shell :: how to stash changes git 
Shell :: bash get result of function 
Shell :: check for remote added git 
Shell :: ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. 
Shell :: install powershell 7 
Shell :: cpoying data in batch 
Shell :: regex for url in bash 
Shell :: first 3 lines of a file 
Shell :: linux print to printer 
Shell :: install phpstan laravel 
Shell :: tail remove newline 
Shell :: vim discard changes and quit command 
Shell :: publish ionic app 
Shell :: how to empty text file in unix 
Shell :: push image to docker hub 
Shell :: install react Spinner 
Shell :: cargo new lib 
Shell :: Not pushed + most recent commit 
Shell :: gradle proxy build 
Shell :: ansible inventory root password 
Shell :: bash if file content equals 
Shell :: rename file powershell 
Shell :: copy ssh key from windows to linux 
Shell :: copy file to remote server 
Shell :: git asking for passphrase after restart 
Shell :: how to install deepin desktop environment on ubuntu 20.10 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =