[08:50] <Kason> why would my system tell me it can't find the cd command when I try to use it with sudo?
[08:52] <sigv> Kason: `cd` is a built-in command of the shell you are using. executing `cd` as a separate command on its own does not provide any benefit for you outside of your shell's context.
[08:53] <Kason> sigv: ok. that's interesting. had never encountered a situation where it had come up before
[08:57] <Kason> I can cd in to /etc but get '-bash: cd: /etc/wireguard: Permission denied' when I try to go into one of its directories
[09:01] <TJ-> Kason: you need to use an interactive 'sudo' session as 'root' with "sudo -i"
[09:02] <twb> Kason: "sudoedit /etc/wireguard/wg-DPRK.conf"
[09:11] <Kason> thanks guys
[12:10] <raddy> Hello
[12:10] <raddy> I am running Ubuntu 20-04 and I have enabled PasswordAuthentication no and ChallengeResponseAuthentication no and have restarted ssh as well
[12:10] <raddy> But still password is being asked
[12:10] <raddy> Password authentication is default
[12:26] <ogra> raddy, AuthenticationMethods publickey
[12:26] <ogra> (and make sure the pub key is on the server and secret key on the client indeed)
[13:40] <raddy> Hello
[13:40] <raddy> I need your help
[13:41] <raddy> I configured a new ubuntu 20,04 server and everything was well and fine
[13:41] <raddy> I rebooted it to apply update, since then ssh login is damn slow
[13:44] <twb> raddy: it is probably DNS
[13:47] <raddy> twb: No, stuck at stuck Successfully set console input code page
[13:49] <twb> raddy: SSH does not have "code pages"
[13:49] <twb> Can you describe your symptoms more?
[13:52] <raddy> twb: key pair authentication. password login disabled, login successful, take about 10 minutes to login,
[13:53] <twb> Tell us exactly and in full detail: full information about the inputs; what you typed/clicked/did; what you saw, and what you expected to see
[13:53] <raddy> I think, I have found the issue.
[13:55] <raddy> twb: Failed to retrieve unit state: Connection timed out
[13:55] <raddy> twb: when trying to restart sshd
[13:56] <twb> So you ran "sudo systemctl restart ssh" ?
[13:56] <raddy> service sshd restart and I know the command is correct
[13:57] <twb> What is the output of "systemctl status ssh"?
[13:57] <raddy> client ssh is running in -vvv for your information
[13:58] <raddy> all commands are slow
[13:59] <raddy> I think there may be a problem in loop back device or hosts file
[14:00] <raddy> twb: Can you give hints ?
[14:00] <twb> What is the output of "systemctl status ssh"?
[14:00] <raddy> Failed to get properties: Connection timed out
[14:00] <twb> OK
[14:01] <twb> That sounds like maybe dbus is broken
[14:01] <twb> Let's check for basic resource exhaustion.
[14:01] <twb> What is the output of "free -h"?
[14:02] <raddy> Mem:           31Gi       659Mi        27Gi       1.0Mi       2.7Gi        30Gi
[14:02] <twb> OK that is fine.  What is the output of "df -h"
[14:03] <raddy> 3.5TB free
[14:03] <raddy> in /
[14:03] <twb> *all* fliesystems are less than 80% full?
[14:03] <raddy> except loop back devices, yes
[14:04] <twb> The loopback filesystem is a squashfs?
[14:04] <raddy> How to find that
[14:04] <twb> "mount" (with no arguments)
[14:04] <raddy> tmpfs shm
[14:05] <twb> If shm is 100% full your system is broken
[14:06] <raddy> that's is not full,
[14:06] <raddy> 0%
[14:06] <twb> Then I do not understand you
[14:06] <twb> Do you know how to use a pastebin?
[14:06] <raddy> Absolutely
[14:07] <twb> please pastebin full output each time, then
[14:07] <raddy> Which command ?
[14:07] <raddy> All auth is slow
[14:08] <raddy> not commands
[14:08] <twb> run "sudo -i" to become root and stay root
[14:09] <raddy> Yeah, I became root after quite a long time of waiting
[19:23] <dwigton> Can a NIC be setup as a trunk with no untagged traffic? I am attempting to put LXC containers on different vlans but am not sure how to to tag the default interface such that I can still ssh into the server.
[19:26] <RoyK> dwigton: just named the default interface eth0.1 and it should tag vlan1
[19:27] <RoyK> then don't use eth0
[19:27] <RoyK> replace names to whatever your nic is called
[19:27] <dwigton> Ah, the naming scheme matters?
[19:28] <RoyK> the dot <n> means vlan <n>
[19:29] <RoyK> it's that simple
[19:30] <dwigton> But does the first part need to be eth0? or enp0s25 in my case?
[19:33] <RoyK> enp0s25.VLANID
[19:35] <dwigton> Ok, thanks, I had set it up using cloud-init and it seemed like I could name them whatever I wanted since the config file defines the vlanid and parent interface.
[19:41] <teward> dwigton: unless you've done some trickery with cloud-init and netplan match blocks to define special names for your interfaces, it'll be whatever they are as detected - such as `enp0s25`.  If your interface is `eth0` then it's eth0, if it's enp0s25 it's enp0s25.  If I have match trickery on Netplan to make my interface named 'internet' then technically it'd be 'internet' at the beginning.  But that's some chaotic level stuff.
[19:41] <teward> dwigton: so unless you've provided a name other than enp0s25 you need to use the interface name.
[19:42] <teward> TECHNICALLY in cloud-init you can preconfigure it to be any 'name' but if the first part doesn't match an interface nothing gets configged.
[20:43] <nikolaj_basher> On my server where i running af web app I use smtp office365 to send email from. But somehow it ends up in the receivers spam. Is there some how I can bugfind why I have set up and spf record on the mail domain but I send it from a sub domain, du I need to include the subdomain in the dns record?
[20:51] <nikolaj_basher> or is there a better channel to get some help??
[21:06] <tomreyn> i doubt there's a channel dedicated to the office365 smtp service or an email deliverability channel. you could reviewing microsofts' documentation on their service.
[21:07] <tomreyn> *try
[21:07] <tomreyn> unless you're running a mails erver on ubuntu and have trouble sending mail from there, it's hardly an ubuntu topic