<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sshd on No Subject - nosubject.io -</title><link>https://nosubject.io/en/tags/sshd/</link><description>Recent content in Sshd on No Subject - nosubject.io -</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 14 Mar 2020 20:09:17 +0900</lastBuildDate><atom:link href="https://nosubject.io/en/tags/sshd/index.xml" rel="self" type="application/rss+xml"/><item><title>[Raspberry Pi 3] How to Change Only the Ubuntu Username Without Changing the User ID (uid)</title><link>https://nosubject.io/en/ubuntu-uid-usermod-groupmod/</link><pubDate>Sat, 14 Mar 2020 20:09:17 +0900</pubDate><guid>https://nosubject.io/en/ubuntu-uid-usermod-groupmod/</guid><description>&lt;p&gt;This continues from &lt;a href="https://nosubject.io/raspberry-pi-ubuntu-18-04-lts-install/"&gt;[Raspberry Pi 3] Installing Ubuntu 18.04 LTS (No Keyboard or Display Required)&lt;/a&gt;.&lt;br&gt;Leaving the user and password as ubuntu/ubuntu is dangerous, so this is about changing them for now.&lt;br&gt;Creating a new user and then deleting the ubuntu user would be fine too, but I tried changing only the name while keeping uid=1000 and gid=1000.&lt;/p&gt;
&lt;h3&gt;Test Environment&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 3&lt;br&gt;Ubuntu 18.04.04 LTS 32-bit&lt;/p&gt;
&lt;h3&gt;How to Do It&lt;/h3&gt;
&lt;p&gt;You need to log in as root before doing the work, so it may be a little more troublesome than adding a new user and deleting the ubuntu user.&lt;/p&gt;</description></item><item><title>Firewall Settings on Ubuntu 19.10</title><link>https://nosubject.io/en/ubuntu-19-10-firewall/</link><pubDate>Fri, 06 Dec 2019 21:14:37 +0900</pubDate><guid>https://nosubject.io/en/ubuntu-19-10-firewall/</guid><description>&lt;p&gt;Since the machine connects directly to an external network over PPPoE, I enable the firewall.&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;$ sudo ufw allow 80
$ sudo ufw allow 443
$ sudo ufw limit 22
$ sudo ufw enable&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I exposed the web server and SSH. SSH password login was disabled beforehand.&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;/etc/ssh/sshd_config
PasswordAuthentication no&lt;/code&gt;&lt;/pre&gt;
&lt;div class="wp-block-cocoon-blocks-balloon-ex-box-1 speech-wrap sb-id-3 sbs-think sbp-l sbis-cn cf block-box"&gt;&lt;div class="speech-person"&gt;&lt;figure class="speech-icon"&gt;&lt;img src="https://nosubject.io/wp-content/uploads/2020/01/1038831.png" alt="Me" class="speech-icon-image"/&gt;&lt;/figure&gt;&lt;div class="speech-name"&gt;Me&lt;/div&gt;&lt;/div&gt;&lt;div class="speech-balloon"&gt;&lt;p&gt;Check the settings with an online &lt;a rel="noreferrer noopener" aria-label="nmap (opens in a new tab)" href="https://pentest-tools.com/network-vulnerability-scanning/tcp-port-scanner-online-nmap" target="_blank"&gt;nmap &lt;/a&gt; site or similar.&lt;/p&gt;</description></item></channel></rss>