<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Terminal on rammie_blog</title>
    <link>https://rammie-blog.xyz/tags/terminal/</link>
    <description>Recent content in Terminal on rammie_blog</description>
    <generator>Hugo</generator>
    <language>ko</language>
    <lastBuildDate>Fri, 21 Nov 2025 14:33:19 +0000</lastBuildDate>
    <atom:link href="https://rammie-blog.xyz/tags/terminal/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[ttyd] Web browser에서 접속 가능한 terminal을 만들자!</title>
      <link>https://rammie-blog.xyz/posts/terminal-on-web-browser/</link>
      <pubDate>Fri, 21 Nov 2025 14:33:19 +0000</pubDate>
      <guid>https://rammie-blog.xyz/posts/terminal-on-web-browser/</guid>
      <description>&lt;p&gt;내 서버를 외부에서 접속하려면 터미널 앱에서 ssh 명령을 통해 접속해야한다. ssh 접속을 하려면 22번 포트(또는 host가 정한 다른 포트)가 열려있어야 하는데, 22번 포트가 열려있지 않거나 적절한 터미널이 없는 환경에서는 서버 접속이 불가능한걸까?&lt;/p&gt;
&lt;p&gt;인터넷 접속이 가능한 환경이라면 http(80), https(443) 포트는 열려 있을테니, 웹 브라우저를 통해 서버에 접속할 수 있지 않을까 생각하게 됐다. Host에서는 웹 페이지 하나를 띄워주고, 해당 페이지에 터미널 앱을 올려놓는 것이다.&lt;/p&gt;
&lt;p&gt;방법으로는 xterm.js 라이브러리를 이용해서 terminal 기능과 hosting 기능을 기초부터 구현할 수도 있고, wetty나 ttyd 같이 이미 구현된 web 기반 terminal 앱을 이용할 수도 있다. 나는 이미 nginx를 통해 블로그를 hosting 하고 있고, 직접 terminal 기능을 구현할 생각이 없으니 당연히 후자의 방법을 택했다. 아래는 chatGPT가 비교한 wetty와 ttyd의 특징이다.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
