본문 바로가기

기초공부/LINUX

[Linux]명령어 ssh

NAME

ssh — OpenSSH SSH client (remote login program)


ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-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]] [user@]hostname [command]


DESCRIPTION

ssh (SSH client) is a program for logging into a remote machine and for executing com‐ mands on a remote machine. It is intended to provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections, arbitrary TCP ports and UNIX-domain sockets can also be forwarded over the secure channel.
ssh connects and logs into the specified hostname (with optional user name). The user must prove his/her identity to the remote machine using one of several methods (see below).
If command is specified, it is executed on the remote host instead of a login shell.


OPTIONS

-i | identity_file
Selects a file from which the identity (private key) for public key authentication is read. The default is ~/.ssh/identity for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. Identity files may also be specified on a per-host basis in the configuration file. It is possible to have multiple -i options (and multiple identities specified in configuration files). If no certificates have been explicitly specified by the CertificateFile directive, ssh will also try to load certificate information from the filename obtained by appending -cert.pub to identity filenames.
공개키 인증을 위한 ID(개인키)를 읽을 파일을 선택한다. 디폴트는 프로토콜 version 1에서는 ~/.ssh/identity이고 프로토콜 version 2에서는 ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519, ~/.ssh/id_rsa 이다. ID 파일은 또한 구성 파일에서 호스트별로 지정할 수 있다. 다중 -i 옵션(과 구성 파일에 지정된 다중 ID)을 가질 수 있다. CertificateFile 지침에 의해 명시적으로 지정된 인증서가 없는 경우, ssh는 ID 파일 이름에 -cert.pub를 포함한 파일에서 인증서 정보를 로드하려고 시도한다.


'기초공부 > LINUX' 카테고리의 다른 글

[Linux]명령어 nc  (0) 2019.03.02
[Linux]명령어 xxd  (0) 2019.02.23
[Linux]명령어 hexdump  (0) 2019.02.23
[Linux]명령어 cat, touch  (0) 2019.01.29
[Linux]명령어 mkdir, rmdir  (0) 2019.01.28