[01:02] Hey, I'm confused about .deb package signatures. Having just built a .deb file, I was expecting to look inside and find a signature file, instead I have a .changes file in addition to my .deb file which contains a signature. Have I missed something or is there no way to have a single signed .deb file? Tools used to sign are (choice of either: dpkg-sig, debsig-verify) [01:04] Looking around I see that debsigs is used to sign .deb files and contain the signature inside the file, is it the case then that I should use debsigs and that the other two tools are not designed to sign the packages themselves? [01:04] terabyte: afaik there's no equivalent to rpm's signatures-on-packages [01:05] hmm [01:05] terabyte: I think the signed .changes files are strictly for admitting packages into the builders [01:05] terabyte: .. and then the apt hashes in repositories are used for distributing packages back to machines [01:06] ok [02:24] i'm just learning nginx for the first time so i'm trying to document how i would want to configure the web server for security/optimization. can anyone briefly review the relevant sections on this doc? just the letsencrypt and nginx related sections. thank you! ^_^ https://www.razorbelle.com/public/text/initial_server_config_NGINX.txt [02:31] seph: seems sane [02:31] seph: you know you're just a few steps away from a full automation.. puppet or chef or ansible or salt or whatever you dislike the least :) [02:32] im not familiar with those [02:36] do you have a recommendation among those choices? [02:36] seph: basically you'd write recipes or playbooks or whatever they call them, and then deploy them to servers, where they'd run and configure things asy ou wish [02:37] seph: not really, they've all made staggeringly stupid mistakes, and all have their own proponents who like them for various reasons.. :) [02:37] ok [02:37] so i will trust doing it by hand [02:37] especially since this is specifically for security [02:37] fair enough, after all that's mostly how I manage my few machines :) [02:37] but just keep in mind when you've copy-pasted these and filled in *username* a few too many times, that you can automate automate automate [02:38] yeah [02:38] i have 7x vps, but most are just basic apache web servers [02:38] this one i want to be more secure and fast [02:38] you can even automate 'give me new machines running foo, bar, baz, and hook them all together" https://jujucharms.com/ [02:38] yeah [02:39] i broke nginx a few times so i spun up a new vps just to play and test things [02:39] going to reformat and follow my own guide [02:39] :) [02:39] see if it works and gets a+ ssl === test is now known as Guest23978 [04:28] why remotely (from internet) my servernot accept ssh? connections but in my lan yes [04:45] Probably portforwarding thmbssfruit [04:45] From the internet what IP are you trying to connect to? [04:47] iDanoo [04:47] assk me user and password [04:47] i think isnt a portforwarding [04:47] Oh okay [04:47] ssay me access denied [04:47] why?/ [04:48] If you check your sshd_config under /etc/ssh/sshd_config, there may be a line labelled #ListenAddress [04:48] you need to make sure that is set to 0.0.0.0, or commented out should work [04:48] wait [04:49] with nano how to find a string? [04:49] ctrl+w I believe [04:49] Otherwise you can try run 'sudo netstat -nlp | grep 22' and paste the line it outputs :) [04:49] wait [04:49] No I'm wrong sorry. [04:49] You said it was hitting authentication [04:50] was commented [04:50] enabled and then: [04:50] : /etc/init.d/ssh restart [04:50] If you're hitting the user:pass it shouldn't make much difference though [04:50] try and [04:50] but you can always try that [04:50] again access denied [04:50] :( [04:51] How are you testing this? [04:51] Are you just trying to use your public IP from inside the LAN? [04:51] yes [04:51] inside the lan i can connect [04:51] can you try in the commandline [04:51] curl [04:51] in client? [04:52] or server? [04:52] just do that on the client :) [04:52] I have a feeling it's hitting your routers SSH server instead of your one. [04:52] iDanoo i am on windows pc [04:53] http://pastebin.com/NKEgV3qT [04:53] see please [04:53] Yeah, it doesn't look like it's hitting your ssh server and failing. [04:53] It looks like it's hitting your router/modem instead. [04:54] Some have a setting with portforwarding like "LAN Loopback". [04:54] you know about fortigate? [04:54] I don't sorry [04:54] But I would assume it's not actually a server problem. [04:54] If you tried from a different network - it will probably let you log in [04:55] outside? [04:55] Yeah a different internet connection. [04:55] You could even try from your phone, and turn off wifi for example. [04:56] ok [09:09] Good morning === Mobutils_ is now known as Mobutils === binia_ is now known as binia [14:42] Hi [14:43] Does anyone have trouble with mosh sessions stayings open for eternity on your servers? [14:44] The max login should've been 2 sessions, but I had to hire it for a customer because I couldn't kill their mosh sessions. I've used skill -KILL -u , I've used skill -KILL -v /dev/pts/x (where x is a number) [14:44] ElinKattunge: Isn't that the expected/unavoidable behavior when you have unclean client shutdowns? [14:44] I've also tried using pkill and kill to kill the mosh processes on their user with no sucess [14:44] andol: Yes [14:45] the user is on a very unstable HP chromebook [14:45] where the wifi drops out a lot [14:46] andol: who claims they are logged in tho [14:47] andol: Reboots usually clear problems up, but it's not a solution [14:47] This is a server, it must stay up! [14:48] Perhaps do something where you sort mosh-server processes per UID, and only allow the N most recent, killing the older ones? [14:51] andol: Do you have a solution on how to implement that? [14:53] You could write a shell script, and loop over the following ps command [14:53] ps --no-headers --sort=start_time -C mosh-server -o user,pid [14:54] Or some version of it [14:54] andol: I also found something weird [14:55] On one system SFTP reported to the customer "Message too long", which I know is to do with long echo statements in bashrc and profile [14:56] and it was vague to me, it wasn't explaining a problem at all, so I SFTPed into that user, on my own system and it said what I expected which was max logins exceeded for that user, so I highered the security limits and it fixed both errors... [14:57] I was banging out head hard on the desk, because that first error message just simply made no sense to me. [14:58] Well, I think the original error message is more about *any* echo statement leaking into sftp, rather than a too long one. [14:58] I just came in here for a sysadmin to sysadmin chat on things, you know? Broaden my insight on things! [14:58] andol: I disagree [14:58] I login successfully via SFTP all the time as long as the echo statements aren't too long [15:00] Ok, I might very well be wrong on that account then. [15:04] andol: The error has confused me too at times [15:06] Except that I suspect that I'm right after all :-) Putting the following in my ~/.bashrc was enough to trigger the too long [15:06] echo "hello" [15:06] Perhaps you have something like this in your ~/.bashrc, and had your echo afterwards? [15:06] [ -z "$PS1" ] && return [15:11] andol: Well, no [15:12] again, I don't understand why the error was thrown on my customers computer [15:12] yet a different error on mine [15:13] The error appearing on my friends computer was all to do with echo statements, there are non on that account, but on my system the error was about the maximum number of logins exceeded and the second error made perfect sense to me (I know my systems), so I highered the login limit and it cleared both errors. [15:13] So there are things about the first error which aren't documented, or it was triggered by a fluke [15:14] andol: Most accounts on this server just hold PHP scripts and webspace, nothing more. [15:28] Capprentice: Are you an Apprentice? [15:28] Yes. Curious Apprentice. [15:28] ;) [15:28] Capprentice: Good, doesn't what, I hope you are enjoying it! [15:28] *doing [15:28] Yep! [15:29] Have you ever set up a squid cachhe in bridge mode? Im trying to do that! Feeling frustrated... [15:32] Capprentice: Recently, I set a squid proxy with, 8 privoxy proxies sitting behind it as slaves [15:32] With Tproxy? [15:32] If T means transparent then no, however I have set transparent ones up in the past [15:33] Capprentice: Is this part of your learning on the job? [15:33] yes. [15:33] hmm [15:33] Well, I am self taught since 2007, been ill for 5 year and waiting to hit a job myself [15:35] I was about to tell them that there is a squid channels for that which might help them better! === mpo is now known as mpo42vr === evade_ is now known as evade === JanC_ is now known as JanC