-
muh2000
i cannot login via root, i enabled both options in the ssh_config PasswordAuthentication yes PermitRootLogin yes but it still gives me PAM: Authentication error for root from what did i do wrong?
-
TommyC
Did you restart sshd?
-
muh2000
yes, i also rebooted the system
-
muh2000
i cannot login via root, i enabled both options in the ssh_config PasswordAuthentication yes PermitRootLogin yes but it still gives me PAM: Authentication error for root from what did i do wrong?
-
MelanieUrsidino
you restarted sshd?
-
MelanieUrsidino
set root a password? or added your sshkey to authorized_keys, better, plus PermitRootLogin prohibit-password
-
muh2000
password is set. sshkeys was the next step i wanted to do
-
CrtxReavr
muh2000, the OpenSSH client & server both have debug options.
-
CrtxReavr
ssh -vvv
-
CrtxReavr
sshd -D -ddd
-
CrtxReavr
If the server is remote, try testing on an alternate port.
-
muh2000
running it in a vm
-
CrtxReavr
Your hypervisor give you console access?
-
muh2000
yes virtualbox
-
CrtxReavr
Then 'service sshd stop'
-
CrtxReavr
Then run /usr/sbin/sshd -D -ddd
-
CrtxReavr
Then try your login attept and see what gets printed.
-
muh2000
when i enter the passwd no error shows up
-
rwp
muh2000, That's totally strange! CrtxReavr's suggestion is how I debug these things too. There are no information messages logged to /var/log/auth.log about why the login is being denied when run normally? The -ddd should send all of these to the terminal as seterr for easy debugging.
-
heston76
muh2000: Is your vbox vim network adapter using NAT?
-
heston76
s/vim/vm
-
rwp
heston76, Good question! However if the NAT was blocking then there would be no password prompt. Since there is a password prompt there must be a connection through.
-
rwp
heston76, However your question makes me think the connection is actually to a completely different system.
-
rwp
Which would be supported by the fact that the password file says nothing out from sshd -ddd output.
-
rwp
s/password file/password fail/ says nothing
-
lts
Great question! You might want to look into /var/log/authlog
-
rwp
s/authlog/auth.log/ ls -ld /var/log/auth.log
-
lts
You're absolutely correct! (Sorry)
-
lts
I was in openbsd headspace
-
rwp
It's hard to juggle all of the headspaces! :-)
-
lts
It really is
-
polarian
how do I ensure rc.conf assigns a lladdr for an interface
-
polarian
I can hop global addresses over lladdr
-
polarian
I dont needto do what I do with IPv4 and hop packets over lots of IPv4 local addresses
-
polarian
but I cant figure out how to get freebsd to assign the lladdr without specifying an address
-
polarian
actually I could just assign the local link addr myself
-
polarian
that would be easier wouldn it xD
-
polarian
I am having issues with IPv6 jail networking now
-
polarian
wait theres two things, firstly how do I have multiple IPv6 addresses in rc.conf, you cant specify many interface_ipv6 lines, the last one will be the one which matches, and if I add multiple inet6 in the same line I get an invalid format error
-
polarian
ifconfig doesnt like it
-
polarian
but my other issue is I cant seem to get packet forwarding working
-
polarian
net.inet6.ip6.forwarding: 1
-
polarian
and yet, if I ping6 the host (main interface, not epair) or say google.com, the ICMPv6 packet passes through the epair, but is dropped host epair side
-
polarian
no log in pflog
-
polarian
for some reason its not forwarded
-
polarian
doesnt get seen on the host interface (re0)
-
polarian
host physical interface
-
polarian
and I have no clue why
-
polarian
like you can ping 2001:8b0:57a:2391::1:4 if you dont to test it yourself, the jail can be reached externally, but the jail cant ping anything itself
-
polarian
I dont know why...
-
polarian
-
polarian
thats the ifconfig on the host
-
polarian
if I ping 2001:8b0:57a:2391:: (the host) there is no forwarding
-
polarian
the packet *should* be forwarded
-
polarian
-
polarian
im just so clueless
-
satanist
polarian: have you forwarding enabled? look at sysctl net.inet6.ip6.forwarding
-
polarian
satanist: already said so
-
polarian
but wait I just remembered something
-
polarian
I might have made a really dumb mistake
-
satanist
sorry missed that
-
vkarlsen
Dumb mistakes aren't so bad. It's the smart ones that will hit you hard.
-
polarian
nope
-
polarian
it wasnt that
-
polarian
I thought missing ipv6_gateway_enable="YES" would have been the problem
-
polarian
but I fixed that, and then service routing restart
-
polarian
same issue
-
polarian
after restarting the jail too
-
polarian
unless...
-
polarian
nope same issue
-
vkarlsen
Shot in the dark without reading all the convo: you're not firewalling icmp, are you?
-
polarian
vkarlsen: its passed quick
-
polarian
icmpv6 that is
-
polarian
because if you dont pass neighbor solicit and adv always IPv6 breaks
-
polarian
so easier to just pass quick icmpv6
-
satanist
how does the routing table in the jail looks like?
-
polarian
-
polarian
it goes:
-
polarian
epair (jail) --> epair (host) then dropped
-
polarian
it should go
-
polarian
epair (jail) --> epair (host) --> re0 --> router --> internet
-
polarian
if I ping say google
-
polarian
it never gets forwarded to re0
-
polarian
it should within the routing table
-
polarian
the default route is the lladdr of the router
-
satanist
the more you explain, the more it sounds like a problem in the firewall setting
-
polarian
satanist: theres no firewall issues
-
polarian
if there was pflog would log it
-
polarian
theres no firewall within the jail either
-
polarian
I have a default block all after the pass quick proto icmpv6
-
polarian
and the default block all is logged
-
polarian
every blocked packet goes to pflog
-
polarian
"block log all"
-
polarian
oh for fuck sake
-
polarian
I found what it is
-
heston76
Can you self ping?
-
polarian
this is fucking embarrassing
-
polarian
satanist: you were right...
-
polarian
I rechecked the firewall, and I noticed I had an antispoof rule in it
-
polarian
I know this expands out into a block
-
polarian
sure enough I comment it out
-
polarian
I can pin
-
polarian
ping*
-
polarian
I wonder why antispoof is causing issues
-
polarian
errrrrrrr
-
polarian
antispoof didnt do anything, just reloading the firewall did, I re-enabled antispoof
-
polarian
did something flush pf I wonder...
-
» polarian shrugs
-
polarian
welp it was fixed by simply doing pfctl -f /etc/pf.conf when the pf.conf hasn't been modified
-
polarian
it works... and I don't know why...