주 메뉴 열기

wwiki β

바뀜

SSH

528 바이트 추가됨, 2023년 4월 2일 (일) 02:50
OpenSSH
https://www.openssh.com/
=== 설치 === ==== 리눅스 ====
데비안 계열에서 클라이언트 설치
</syntaxhighlight>
==== 사용법 ====usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destination [command] $ ssh -i .ssh/aws_arm64.pem admin@아이피 ==윈도우 = 윈도우 ===
[https://docs.microsoft.com/ko-kr/windows-server/administration/openssh/openssh_install_firstuse OpenSSH 설치]
# AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
</syntaxhighlight>
 
==== SYNOPSIS ====
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
 
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
 
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
 
[-i identity_file] [-J [user@]host[:port]] [-L address]
 
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
 
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
 
[-w local_tun[:remote_tun]] destination [command]
$ ssh -i .ssh/aws_arm64.pem admin@아이피
==ssh-keygen==
===키 생성===
 
====리눅스====
$ ssh-keygen -t rsa
PS > ssh-keygen -t rsa
나머지는 엔터치면 기본값으로 .ssh 폴더에 생성된다.
입력없이 생성하려면
$ ssh-keygen -q -t rsa -N "" -f /[사용자홈]/.ssh/id_rsa
 
====윈도우====
파워쉘에서 생성할 수 있다.
PS > ssh-keygen -t rsa
=====puttygen=====
$ ssh-keygen -e [-m key_format] [-f input_keyfile]
=설정파일ssh config=The client configuration file ssh는 다음 순서로 설정 정보를 얻는다. # command-line options# user's configuration file (~/.ssh/config)# system-wide configuration file (/etc/ssh/ssh_config) === PreferredAuthentications ===선호하는 인증방법을 지정한다.  gssapi-with-mic,hostbased,publickey,keyboard-interactive,password === IdentityFile ===기본값은 ''~/.ssh/id_rsa'', ''~/.ssh/id_ecdsa'', ''~/.ssh/id_ecdsa_sk'', ''~/.ssh/id_ed25519'', ''~/.ssh/id_ed25519_sk'' and ''~/.ssh/id_dsa''. 이다. == sshd config ==OpenSSH daemon configuration file ''/etc/ssh/sshd_config''<syntaxhighlight lang="apacheconf">
# 패스워드 인증허용여부
PasswordAuthentication no
편집
2,431