티스토리 뷰

728x90
### client
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519
ssh-copy-id userid@hostname

### server /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

https://stackoverflow.com/questions/43235179/how-to-execute-ssh-keygen-without-prompt

 

How to execute ssh-keygen without prompt

I want to automate generate a pair of ssh key using shell script on Centos7, and I have tried yes "y" | ssh-keygen -t rsa echo "\n\n\n" | ssh-keygen... echo | ssh-keygen.. all of these command do...

stackoverflow.com

https://serverfault.com/questions/241588/how-to-automate-ssh-login-with-password

 

How to automate SSH login with password?

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration. ex) echo password | ssh id@

serverfault.com

https://pooh0928.tistory.com/82

 

[SSH] 공개키 설정(authorized_keys) 후 연결되지 않을 때

1. 연결 대상 서버에서 /etc/ssh/sshd_config에서 아래 내용 주석 해제RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys 2. ~/.ssh/authorized_keys 파일에 대한 권한 설정을 다시 한다.(왜하는지

pooh0928.tistory.com

https://opentutorials.org/module/432/3742

 

SSH Key - 비밀번호 없이 로그인 - 원격제어

SSH Key란? 서버에 접속 할 때 비밀번호 대신 key를 제출하는 방식이다.  SSH Key는 언제 사용하는가? 비밀번호 보다 높은 수준의 보안을 필요로 할 때 로그인 없이 자동으로 서버에 접속 할 때 SSH Key

opentutorials.org

 

728x90
댓글