/srv/irclogs.ubuntu.com/2016/12/03/#ubuntu-server.txt

terabyteHey, 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:02
terabyteLooking 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
sarnoldterabyte: afaik there's no equivalent to rpm's signatures-on-packages01:04
terabytehmm01:05
sarnoldterabyte: I think the signed .changes files are strictly for admitting packages into the builders01:05
sarnoldterabyte: .. and then the apt hashes in repositories are used for distributing packages back to machines01:05
terabyteok01:06
sephi'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.txt02:24
sarnoldseph: seems sane02:31
sarnoldseph: 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:31
sephim not familiar with those02:32
sephdo you have a recommendation among those choices?02:36
sarnoldseph: 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 wish02:36
sarnoldseph: not really, they've all made staggeringly stupid mistakes, and all have their own proponents who like them for various reasons.. :)02:37
sephok02:37
sephso i will trust doing it by hand02:37
sephespecially since this is specifically for security02:37
sarnoldfair enough, after all that's mostly how I manage my few machines :)02:37
sarnoldbut just keep in mind when you've copy-pasted these and filled in *username* a few too many times, that you can automate automate automate02:37
sephyeah02:38
sephi have 7x vps, but most are just basic apache web servers02:38
sephthis one i want to be more secure and fast02:38
sarnoldyou can even automate 'give me new machines running foo, bar, baz, and hook them all together" https://jujucharms.com/02:38
sephyeah02:38
sephi broke nginx a few times so i spun up a new vps just to play and test things02:39
sephgoing to reformat and follow my own guide02:39
sarnold:)02:39
sephsee if it works and gets a+ ssl02:39
=== test is now known as Guest23978
thmbssfruitwhy remotely (from internet) my servernot accept ssh? connections but in my lan yes04:28
iDanooProbably portforwarding thmbssfruit04:45
iDanooFrom the internet what IP are you trying to connect to?04:45
thmbssfruitiDanoo04:47
thmbssfruitassk me user and password04:47
thmbssfruiti think isnt a portforwarding04:47
iDanooOh okay04:47
thmbssfruitssay me access denied04:47
thmbssfruitwhy?/04:47
iDanooIf you check your sshd_config under /etc/ssh/sshd_config, there may be a line labelled #ListenAddress04:48
iDanooyou need to make sure that is set to 0.0.0.0, or commented out should work04:48
thmbssfruitwait04:48
thmbssfruitwith nano how to find a string?04:49
iDanooctrl+w I believe04:49
iDanooOtherwise you can try run 'sudo netstat -nlp | grep 22' and paste the line it outputs :)04:49
iDanoowait04:49
iDanooNo I'm wrong sorry.04:49
iDanooYou said it was hitting authentication04:49
thmbssfruitwas commented04:50
thmbssfruitenabled and then:04:50
thmbssfruit: /etc/init.d/ssh restart04:50
iDanooIf you're hitting the user:pass it shouldn't make much difference though04:50
thmbssfruittry and04:50
iDanoobut you can always try that04:50
thmbssfruitagain access denied04:50
thmbssfruit:(04:50
iDanooHow are you testing this?04:51
iDanooAre you just trying to use your public IP from inside the LAN?04:51
thmbssfruityes04:51
thmbssfruitinside the lan i can connect04:51
iDanoocan you try in the commandline04:51
iDanoocurl <publicip>04:51
thmbssfruitin client?04:51
thmbssfruitor server?04:52
iDanoojust do that on the client :)04:52
iDanooI have a feeling it's hitting your routers SSH server instead of your one.04:52
thmbssfruitiDanoo i am on windows pc04:52
thmbssfruithttp://pastebin.com/NKEgV3qT04:53
thmbssfruitsee please04:53
iDanooYeah, it doesn't look like it's hitting your ssh server and failing.04:53
iDanooIt looks like it's hitting your router/modem instead.04:53
iDanooSome have a setting with portforwarding like "LAN Loopback".04:54
thmbssfruityou know about fortigate?04:54
iDanooI don't sorry04:54
iDanooBut I would assume it's not actually a server problem.04:54
iDanooIf you tried from a different network - it will probably let you log in04:54
thmbssfruitoutside?04:55
iDanooYeah a different internet connection.04:55
iDanooYou could even try from your phone, and turn off wifi for example.04:55
thmbssfruitok04:56
lordievaderGood morning09:09
=== Mobutils_ is now known as Mobutils
=== binia_ is now known as binia
ElinKattungeHi14:42
ElinKattungeDoes anyone have trouble with mosh sessions stayings open for eternity on your servers?14:43
ElinKattungeThe 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 <username>, I've used skill -KILL -v /dev/pts/x (where x is a number)14:44
andolElinKattunge: Isn't that the expected/unavoidable behavior when you have unclean client shutdowns?14:44
ElinKattungeI've also tried using pkill and kill to kill the mosh processes on their user with no sucess14:44
ElinKattungeandol: Yes14:44
ElinKattungethe user is on a very unstable HP chromebook14:45
ElinKattungewhere the wifi drops out a lot14:45
ElinKattungeandol: who claims they are logged in tho14:46
ElinKattungeandol: Reboots usually clear problems up, but it's not a solution14:47
ElinKattungeThis is a server, it must stay up!14:47
andolPerhaps do something where you sort mosh-server processes per UID, and only allow the N most recent, killing the older ones?14:48
ElinKattungeandol: Do you have a solution on how to implement that?14:51
andolYou could write a shell script, and loop over the following ps command14:53
andolps --no-headers --sort=start_time -C mosh-server -o user,pid14:53
andolOr some version of it14:54
ElinKattungeandol: I also found something weird14:54
ElinKattungeOn one system SFTP reported to the customer "Message too long", which I know is to do with long echo statements in bashrc and profile14:55
ElinKattungeand 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:56
ElinKattungeI was banging out head hard on the desk, because that first error message just simply made no sense to me.14:57
andolWell, I think the original error message is more about *any* echo statement leaking into sftp, rather than a too long one.14:58
ElinKattungeI just came in here for a sysadmin to sysadmin chat on things, you know? Broaden my insight on things!14:58
ElinKattungeandol: I disagree14:58
ElinKattungeI login successfully via SFTP all the time as long as the echo statements aren't too long14:58
andolOk, I might very well be wrong on that account then.15:00
ElinKattungeandol: The error has confused me too at times15:04
andolExcept that I suspect that I'm right after all :-) Putting the following in my ~/.bashrc was enough to trigger the too long15:06
andolecho "hello"15:06
andolPerhaps you have something like this in your ~/.bashrc, and had your echo afterwards?15:06
andol[ -z "$PS1" ] && return15:06
ElinKattungeandol: Well, no15:11
ElinKattungeagain, I don't understand why the error was thrown on my customers computer15:12
ElinKattungeyet a different error on mine15:12
ElinKattungeThe 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
ElinKattungeSo there are things about the first error which aren't documented, or it was triggered by a fluke15:13
ElinKattungeandol: Most accounts on this server just hold PHP scripts and webspace, nothing more.15:14
ElinKattungeCapprentice: Are you an Apprentice?15:28
CapprenticeYes. Curious Apprentice.15:28
Capprentice;)15:28
ElinKattungeCapprentice: Good, doesn't what, I hope you are enjoying it!15:28
ElinKattunge*doing15:28
CapprenticeYep!15:28
CapprenticeHave you ever set up a squid cachhe in bridge mode? Im trying to do that! Feeling frustrated...15:29
ElinKattungeCapprentice: Recently, I set a squid proxy with, 8 privoxy proxies sitting behind it as slaves15:32
CapprenticeWith Tproxy?15:32
ElinKattungeIf T means transparent then no, however I have set transparent ones up in the past15:32
ElinKattungeCapprentice: Is this part of your learning on the job?15:33
Capprenticeyes.15:33
ElinKattungehmm15:33
ElinKattungeWell, I am self taught since 2007, been ill for 5 year and waiting to hit a job myself15:33
ElinKattungeI was about to tell them that there is a squid channels for that which might help them better!15:35
=== mpo is now known as mpo42vr
=== evade_ is now known as evade
=== JanC_ is now known as JanC

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!