레이블이 ssh인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ssh인 게시물을 표시합니다. 모든 게시물 표시

4/13/2020

리눅스 통신

** 리눅스 통신


` PING


- ping

- Analyzing network and host connections

- Tracking network performance and managing it

- Testing hardware and software issues


` FTP

- FTP is File Transfer Protocol.

- ftp

- Logging in and establishing a connection with a remote host.

- Upload and download files.

- Navigating through directories.

- Browsing contents of the directories.


- dir : Display files in the current directory remote computer

- cd "dirname" : Change directory to "dirname" on remote computer

- put file : upload 'file' from local to remote computer

- get file : Download 'file' from remote to local computer

- quit : Logout



` Telnet

- telnet

- Connect to a remote Linux computer.

- Run programs remotely and conduct administration.

- Similar to the Remote Desktop found in Windows Machine.


` SSH


- SSH username@ip-address or hostname

- Securely connect to a remote computer

- Compared to Telnet, SSH is more secure


`` Summary

- Communication between Linux/UNIX and other different computers, networks and remote users is possible.

- The ping command checks whether the connection with a hostname or IP-address is working or not. Run 'ping IP address or Hostname' on the terminal.

- FTP is preferred protocol for sending and receiving large files. You can establish a FTP connection with a remote host and then use commands for uploading, downloading files, checking file and browsing them.

- Telnet utility helps you to connect to a remote Linux computer and work on it.

- SSH is a replacement for Telnet and is used by system administrators to control remote Linux servers.

---------------------------------------------------------------------



`` Environment Variables


` Platform = Operating System + Processor

` Variable ?

- Location for storing a value

- Referred to with its symbolic name

- The value stored can be displayed, deleted, edited and re-saved


` Environment Variables ?

- Dynamic values

- Exist in every operating system

- Can be created, edited, saved and deleted

- Gives information about the system behavior

- Change the way software/programs behave


- PATH : This variable contains a colon(:)-separated list of directories in which your system looks for executable files.

- USER : The username

- HOME : Default path to the user's home directory

- EDITOR : Path to the program which edits the content of files

- UID : User's unique ID

- TERM : Default terminal emulator

- SHELL : Shell being used by the user

- ENV : displays all the environment variables


` Accessing Variable values

- echo $VARIABLE


` Creating New Variables

- VARIABLENAME = variablevalue


` Deleting Variables

- unset


`` Summary

- Environment variables govern behavior of programs in your Operating system.

- echo $VARIABLE : To display value of a variable

- env : Displays all environment variables

- VARIABLE_NAME = variable_value : Create a new variable

- unset : Remove a variable

- export Variable = value : To set value of an environment variable

6/20/2007

[Linux] ssh(secure shell) 구문 및 명령줄 옵션

** ssh(secure shell) 구문 및 명령줄 옵션

ssh [-a] [-c idea blowfish des 3des arcfour tss none] [-e escape_char] A [-I identity_file] [-l login_name] [-n] [-k] [-V] [=o option] [-p port] A [-q] [-P] [-t] [-v] [-x] [-C] [-L port "host:hostport] [-R port:host:hostport] Ahostname [command]

-a : 인증 에이전트의 전송을 불가능하게 한다.

-c : 세션을 암호화하는데 사용할 암호 해독기를 선택한다. idea가 기본값이고, arcfour가 가장 빠르며, none은 rlogin이나 rsh(암호화 없음)를 사용하는 것과 같다.

-e : 세션에 대한 이스케이프 문자를 설정해 준다.

-f : 인증과 전송이 설정된 후에 백그라운드에서 ssh를 설정해 준다.

-i : RSA 인증을 위한 비밀 키를 읽어 올 아이덴티티 파일을 선택한다.

-k : Kerberos 티켓의 전송을 불가능하게 한다.

-l : 원격 시스템에 사용할 로그인 이름을 설정해 준다.

-n : ssh가 백그라운드에서 실행될 때 사용되는 /dev/nulls 로 부터의 stdin을 재지정한다.

-o : 구성 파일의 형식을 따르는 사용자 정의 옵션에 사용된다.

-p : 원격 호스트에 있는 연결할 포트를 설정해 준다.

-q : 치명적인 오류를 제외한 모든 메시지를 억제하는 quiet 모드를 활성화한다.

-P : 특권이 부여되지 않은 포트를 사용한다.

-t : pseudo-tty 할당을 강제한다.

-v : (디버깅에 유용한) 자세한 정보 표시 모드를 활성화한다.

-x : X11 전송을 불가능하게 한다.

-C : 모든 데이터의 압축을 요구한다.

-L : 지정된 원격 호스트와 포트에 전송할 로컬 포트를 지정한다.

-R : 로커 호스트와 지정된 포트로 전송될 원격 포트를 지정한다.