본문 바로가기
【Fundamental Tech】/openSUSE

How to Enable SSH in openSUSE Leap 15.6

반응형

SSH 시작

  • systemctl status sshd (또는 service sshd status)
  • systemctl start sshd ( 또는 service sshd start)

SSH 활성화

  •  systemctl enable sshd (또는 service sshd enable)

SSH 서비스의 방화벽 영구적으로 오픈

SuSE Linux 15 버전부터는 firewalld 기본적으로 설치되며, 
기존에 SuSE Linux에서 사용하던 SuSEfirewall2 기본 설치되지는 않음. (SuSEfirewall2 사용할 수는 있음)

  • 현재 상태 확인
    firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
  • firewall-cmd --add-service=ssh --permanent
  • firewall-cmd --reload
  • 방화벽 오픈 적용 후
    firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
반응형