Skip to main content

SSH 설정

  1. hostname 설정

    cisco(config)#hostname [호스트명]
    
  2. user 생성 및 enable password 설정

    cisco(config)#username [계정명] secret [password]
    cisco(config)#enable secret [password]
    
  3. domain name 설정

    cisco(config)#ip domain name [도메인명]
    
  4. RSA키 생성

    cisco(config)#crypto key generate rsa 
    The name for the keys will be: cisco.cisco
    Choose the size of the key modulus in the range of 360 to 4096 for your
      General Purpose Keys. Choosing a key modulus greater than 512 may take
      a few minutes.
    
    How many bits in the modulus [512]: 1024
    
  5. ip 설정

    cisco(config)#int [인터페이스 명]
    cisco(config-if)#ip address [ip] [subnet]
    
  6. line vty설정

    cisco(config)#line vty 0 15  << vty 라인 개수는 상황에 따라
    cisco(config-line)#login local
    cisco(config-line)#transport input ssh