주 메뉴 열기

wwiki β

바뀜

SSH

479 바이트 추가됨, 2024년 2월 28일 (수)
ssh config
데비안 계열에서 클라이언트 설치
ssh-keygen명령을 포함한다.<syntaxhighlight lang="bash">
$ apt update
$ apt install openssh-client
==== 윈도우 ====
MS문서: [https://docs.microsoft.com/ko-kr/windows-server/administration/openssh/openssh_install_firstuse OpenSSH 설치]
위의 링크에 있지만, <code>C:\WINDOWS\System32\OpenSSH\ssh.exe</code>에 설치된다.(8.6.0.1) 참고로 gitbash에서는(git version 2.44.0.windows.1) <code>C:\Program Files\Git\usr\bin</code>에 설치되며 ssh config파일의 위치도 다른 것으로 보인다. [[PowerShell|파워셀]]을 관리자 권한으로 실행해서 실행해야 서비스를 제어할 수 있다.<syntaxhighlight lang="powershell">
# Start the sshd service
Start-Service sshd
# command-line options
# user's configuration file (~/.ssh/config)
# system-wide configuration file (/etc/ssh/ssh_config, 윈도우 OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3 경우에 C:/ProgramData/ssh/ssh_config)<syntaxhighlightlang="text">
Host github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
UserKnownHostsFile ~/.ssh/known_hosts
Port 60
</syntaxhighlight>
윈도우에서는 버전에 따라서 전체경로를 <code>c:/User/[user name]/.ssh/id_rsa</code> 등으로 지정해야 하는 경우가 있다.
 
=== Port ===
기본포트를 변경한 경우에 다음 명령으로 접속할 수 있다.
$ ssh -v 사용자명@서버주소
== sshd config ==
편집
2,431