Search Debian Channel Logs

Wednesday, February 22, 2017

#debian channel featuring somiaj, dragutux, judd, dpkg,

dragutux 2017-02-22 13:06:02
howdy, so i just installed a fresh jessie install on a virtualbox, i can login to ssh "user@localhost" without troubles but not from local pc or externally, so i do ponder what need to be changed / what is blocking exactly
somiaj 2017-02-22 13:06:50
dragutux: sounds like the virtual network is not setup correctly for portforawrding or routing, what is the host?
dragutux 2017-02-22 13:07:04
its setup, i get the prompt
dragutux 2017-02-22 13:07:13
it's just plainly refusing my passwords
dragutux 2017-02-22 13:07:36
never had such a problem before, i've been a debian user since potato
somiaj 2017-02-22 13:08:02
what user are you suing?
somiaj 2017-02-22 13:08:09
root or a normal user?
dragutux 2017-02-22 13:09:52
i repeat : i can't login
dragutux 2017-02-22 13:09:53
ssh login
dragutux 2017-02-22 13:11:09
i can login & su regularly from local console
dragutux 2017-02-22 13:11:09
and i can "ssh user@localhost" without a problem from the local console
dragutux 2017-02-22 13:11:09
its the remote login that's failing
somiaj 2017-02-22 13:11:42
dragutux: netstat -a (is ssh listening on your external interface? have you tried ssh externalip address from inside the vm?)
dragutux 2017-02-22 13:12:56
dragutux 2017-02-22 13:12:57
hm
dragutux 2017-02-22 13:13:14
there's a ssh prompt in putty
dragutux 2017-02-22 13:13:28
again : fresh jessie install
somiaj 2017-02-22 13:14:16
Yes I got that, it should be listening, to me it shounds more like a network issue of the host. My last tests were to ensure it was the (virtual) network of the host and not just the server wasn't listening on the outside ip
somiaj 2017-02-22 13:14:52
you could also grab the ip from 'ip a', make sure the interface is configured and then ssh to the ip from inside the vm.
dragutux 2017-02-22 13:14:54
i mean no offense but :
dragutux 2017-02-22 13:15:17
i'm a gamedev, 16+ years of experience, first time ever that a sshd does that and i've been using linux since 1992
dragutux 2017-02-22 13:15:52
is there nothing that has been changed in sshd security that could be screwing me over ? where's the log ? i have no logs in syslog
dragutux 2017-02-22 13:16:01
Using username "dragutux".
dragutux 2017-02-22 13:16:01
dragutux@192.168.56.1's password:
dragutux 2017-02-22 13:16:01
Access denied
dragutux 2017-02-22 13:16:09
that's the only info i get
somiaj 2017-02-22 13:16:11
okay, but that doesn't solve the problem. By default it should be working, but it isn't, so lets try to track down the problem
dragutux 2017-02-22 13:16:17
BUT i can log from the local console
somiaj 2017-02-22 13:16:29
dragutux: you did that from inside the local console?
dragutux 2017-02-22 13:16:37
that's from putty
dragutux 2017-02-22 13:16:44
i get a ssh prompt, it refuse me access
dragutux 2017-02-22 13:16:46
plain & simple
dragutux 2017-02-22 13:16:59
no network issue whatsoever in connecting :)
somiaj 2017-02-22 13:17:04
you only said you did ssh user@localhost from inside, do ssh user@192.168.56.1 form inside
dragutux 2017-02-22 13:17:10
no
dragutux 2017-02-22 13:17:22
howdy, so i just installed a fresh jessie install on a virtualbox, i can login to ssh "user@localhost" without troubles but not from local pc or externally, so i do ponder what need to be changed / what is blocking exactly
dragutux 2017-02-22 13:17:22
dragutux 2017-02-22 13:17:36
i mean no offense but i said it all there ......
somiaj 2017-02-22 13:17:57
yes I got that, you said you can ssh user@localhost, I want to see if you can ssh user@192.168.56.1 from inside the console.
dragutux 2017-02-22 13:18:10
"but not from a local pc or externally"
dragutux 2017-02-22 13:18:20
let me see
somiaj 2017-02-22 13:18:39
dragutux: what is the output if 'ip a' from inside the vm (again I want to avoid the host, and see what the guest is configured as)
dragutux 2017-02-22 13:18:41
shouldnt be able as 192.168.56.1 is external ip not internal
dragutux 2017-02-22 13:18:57
(NAT will block it)
dragutux 2017-02-22 13:19:22
scratch that, it did accept
dragutux 2017-02-22 13:19:28
but i still get a failed login
somiaj 2017-02-22 13:19:53
dragutux: okay ssh -vvv user@ip from inside the the guest, Lets see if we can track this down.
dragutux 2017-02-22 13:19:56
https://www.twitch.tv/thegstudios <-- i'm live
dragutux 2017-02-22 13:21:02
https://www.liveedu.tv/g-studios/ (also there)
dragutux 2017-02-22 13:21:19
it says its a know host notably
somiaj 2017-02-22 13:21:32
okay, anyways there is some output, be nice if you could paste it to paste.debian.net to see it better
dragutux 2017-02-22 13:21:57
thats going to be problematic...
somiaj 2017-02-22 13:22:09
is the guest not on the network?
dragutux 2017-02-22 13:22:21
virtualbox doesnt have a mouse shell driver :/
dragutux 2017-02-22 13:22:23
that's the problem
somiaj 2017-02-22 13:22:35
!pastebinit
dpkg 2017-02-22 13:22:35
A command-line tool to send data to a . To paste e.g. your sources.list do "aptitude install pastebinit; pastebinit /etc/apt/sources.list"; to paste the output of a program do e.g. "dmesg | pastebinit". See also , .
somiaj 2017-02-22 13:22:57
if you are on the network you could send the output to paste.debian.net with that tool, as for the mouse integration you can install
somiaj 2017-02-22 13:23:06
,v virtualbox-guest-dkms
judd 2017-02-22 13:23:07
Package: virtualbox-guest-dkms on amd64 -- wheezy-security: 4.1.42-dfsg-1+deb7u1; wheezy: 4.1.42-dfsg-1+deb7u1; wheezy-backports/contrib: 4.3.36-dfsg-1+deb8u1~bpo70+1; jessie-security/contrib: 4.3.36-dfsg-1+deb8u1; jessie/contrib: 4.3.36-dfsg-1+deb8u1; jessie-backports/contrib: 5.1.8-dfsg-6~bpo8+2; sid/contrib: 5.1.14-dfsg-2
somiaj 2017-02-22 13:23:25
though don't know if that works for shells, but that is beside the point
somiaj 2017-02-22 13:23:44
dragutux: I agree it is strange that it is not working, I cannot think of anything that would prevent it from working so trying to debug what the issue is.
dragutux 2017-02-22 13:23:46
if pastebinit works
dragutux 2017-02-22 13:23:58
fine with that
somiaj 2017-02-22 13:25:01
dragutux: try ssh -vvv user@ip 2>&1 >log
dragutux 2017-02-22 13:25:43
might be a gssapi what not bug ..
somiaj 2017-02-22 13:26:45
dragutux: yea it is just hard to read the log over twitch. Unsure why that isn't pipe it into a log, one second
somiaj 2017-02-22 13:29:18
dragutux: this worked for me, 'ssh user@ip 2>&1 | tee tmplog'
somiaj 2017-02-22 13:29:27
forgot the -vvv
dragutux 2017-02-22 13:31:09
and my internet keeps jumping for whatever reason... (i think night maintenance..)
dragutux 2017-02-22 13:31:27
i can pipe a |more at the end
somiaj 2017-02-22 13:31:49
well the tee should print it to the screen and put it in the log, ran a test here and it worked.
somiaj 2017-02-22 13:32:30
but by default on jessie I cannot think of anything that would allow you to login via localhost but not via the ipaddress
dragutux 2017-02-22 13:37:32
GRMBL
dragutux 2017-02-22 13:37:43
what the fuck got failed in the jessie default conf >__<
somiaj 2017-02-22 13:38:38
you can also check /var/log/auth.log and see if it says why the authentication is failing.