-
Infinity8_
Hello, I need help with my SSH tunnel to monerod
-
Infinity8_
-
Infinity8_
I'm getting monerotunnel⊙111: Permission denied (publickey)
-
Infinity8_
Confirmed that I imported the correct RSA key to ~/.ssh/authorized_keys on the node server
-
Infinity8_
and did "sudo service restart ssh"
-
ndorf
check the logs, /var/log/auth.log or so
-
ndorf
probably the permissions on ~/.ssh are wrong. logs will tell you, if so
-
Infinity8_
ndorf: on the server or the client?
-
Infinity8_
Authentication refused: Bad ownership
-
Infinity8_
of authorized keys file
-
ndorf
yep
-
Infinity8_
so I just set allow all users to read the file
-
Infinity8_
right?
-
ndorf
the owner must be the user or root
-
ndorf
probably your regular user owns it now? that's not allowed
-
ndorf
IOW: if you followed the guide exactly, the file and dir must be owned by sshtunnel or root.
-
ndorf
if root, then you also have to ensure that sshtunnel can *read* it, otherwise you'll get a different error.
-
ndorf
right now, the reason sshd is complaining is that some third user can write to the file.
-
Infinity8_
ndorf, I used sudo su to write the key to authorized_keys and i'm still getting auth error...
-
Infinity8_
nevermind, new error message
-
Infinity8_
deprecated RSAghost
-
ndorf
ls -ld ~sshtunnel/.ssh ~sshtunnel/authorized_keys
-
ndorf
oh.
-
ndorf
what exactly does it say?
-
Infinity8____
ndorf
-
Infinity8____
ndorf: Aug 30 19:58:38 node-P5QL-PRO polkitd(authority=local): Operator of unix-session:c2 FAILED to authenticate to gain authorization for action org.gtk.vfs.file-operations for unix-process:1685:13867 [nemo /home/node] (owned by unix-user:node)
-
ndorf
oh gosh, i don't know about that one, sorry
-
Infinity8____
Aug 30 19:59:26 node-P5QL-PRO sshd[4291]: Connection closed by authenticating user tunnel 192.168.1.26 port 51952 [preauth]
-
ndorf
polkit and gvfs are evil. lol
-
Infinity8____
fark
-
Infinity8____
this is clean install as well
-
ndorf
which distro?
-
Infinity8____
linux mint 20
-
Infinity8____
but i updated all the packages
-
Infinity8____
so ubuntu basically...
-
ndorf
did you try connecting as a normal user, without all the hardening steps?
-
Infinity8____
not yet
-
ndorf
that might help narrow it down. you can create a temp one and then delete after
-
Infinity8_
Okay, Ijust did
-
Infinity8_
connect to a normal user
-
Infinity8_
it worked
-
Infinity8_
now I tried to connect as the tunnel user and I get an auth error that the RSA key changed
-
Infinity8_
so I'll try to sort that one out first
-
Infinity8_
ok permission denied again...
-
ndorf
the host key? you're getting "man in the middle" warning?
-
Infinity8_
yeah
-
ndorf
that's weird, assuming you didn't just regenerate those
-
Infinity8_
ndorf: Logged into a non-existent server
-
Infinity8_
oops
-
Infinity8_
user***
-
Infinity8_
so it was from before my fresh install
-
ndorf
ah, ok
-
Infinity8____
Aug 30 20:05:58 node-P5QL-PRO sshd[4551]: Connection closed by authenticating user tunnel 192.168.1.5 port 42620 [preauth]
-
Infinity8____
that's the freshest one
-
Infinity8____
still "Permission denied (public key)"
-
ndorf
any others from polkitd aside from the one you already posted?
-
Infinity8____
ah. i must connect to correct port
-
Infinity8____
at 18081 oops lol
-
Infinity8____
because I did the hardening
-
Infinity8____
can't just do regular ssh
-
ndorf
well, i don't think that's it, because authentication needs to succeed first in any case
-
Infinity8_
Oh shit, I was executing those command while ssh'd as regular user lol
-
Infinity8_
well that explains a lot
-
ndorf
which?
-
Infinity8_
normal user on the remote node
-
Infinity8_
i was trying to ssh into itself
-
ndorf
oops. so does it work the right way?
-
Infinity8_
let me restart my machine first
-
Infinity8_
my client
-
ndorf
is it a windows box or something? lol
-
Infinity8____
Aug 30 20:10:25 nodlr-P5QL-PRO sshd[4746]: Connection closed by authenticating user nodetunnel 192.168.1.26 port 51990 [preauth]
-
Infinity8____
Nah, linux mint as well
-
Infinity8____
I don't use Windblows for crypto unless I have a hardware wallet
-
Infinity8____
Aug 30 20:10:25 node-P5QL-PRO sshd[4746]: Connection closed by authenticating user tunnel 192.168.1.26 port 51990 [preauth]
-
Infinity8____
port should be 18081 not 51990
-
Infinity8____
hardening blocks all ports for traffic except 18081
-
ndorf
nah, that's the source port for the ssh connection
-
ndorf
it's just random
-
ndorf
so aside from that message, are there any others?
-
ndorf
still getting the stuff from polkitd? any other messages from that service?
-
Infinity8____
nope
-
Infinity8____
Just Aug 30 20:10:25 node-P5QL-PRO sshd[4746]: Connection closed by authenticating user tunnel 192.168.1.26 port 51990 [preauth]
-
Infinity8____
with an ever increasing port number
-
Infinity8____
with increasing attempts
-
ndorf
yep that's fine
-
ndorf
so there is nothing except this connection closed now?
-
ndorf
can you try running the client with -v option?
-
ndorf
ssh -v ...
-
Infinity8____
permission denied with a bunch of logs
-
ndorf
you can use paste.debian.net or similar to paste a bunch of logs
-
ndorf
just look them over for anything sensitive first
-
Infinity8
-
Infinity8
It is set to block traffic except for 18081 so default 22 port probably won't work
-
Infinity8
I wrote a script that worked before and it doesn't work anymore :/
-
Infinity8
because of the public key auth denied
-
ndorf
hey, sorry
-
ndorf
port 22 is definitely not blocked, since you can see your client connects and tries a few keys before giving up
-
ndorf
ls -ld ~sshtunnel/.ssh ~sshtunnel/authorized_keys ~sshtunnel
-
ndorf
^ can you do that so we can rule out all the permissions at once
-
ndorf
ls -ld ~nodetunnel/.node ~nodetunnel/authorized_keys ~nodetunnel
-
Infinity8
ndorf: Done that and restarted ssh service
-
Infinity8
still public auth key
-
Infinity8____
Aug 30 21:03:16 nodlr-P5QL-PRO sshd[5900]: Connection closed by authenticating user nodetunnel 192.168.1.26 port 39014 [preauth]
-
ndorf
what is the output of the ls command? should be 3 lines
-
Infinity8____
on client or server?
-
ndorf
on the server. this one 21:39 < ndorf> ls -ld ~nodetunnel/.node ~nodetunnel/authorized_keys ~nodetunnel
-
Infinity8____
ls: cannot access '/home/nodetunnel/.node': No such file or directory
-
Infinity8____
ls: cannot access '/home/nodetunnel/authorized_keys': No such file or directory
-
Infinity8____
drwxr-xr-x 5 nodetunnel nodetunnel 4096 Aug 30 19:33 /home/nodetunnel
-
Infinity8____
ndorf:
-
Infinity8____
i'm using .ssh and .ssh/authorized_keys
-
Infinity8____
so I did replace the correct lines
-
ndorf
sorry, i don't know how i mangled the command
-
ndorf
ls -ld ~nodetunnel/.ssh ~nodetunnel/.ssh/authorized_keys ~nodetunnel
-
Infinity8____
ndorf: drwxr-xr-x 5 nodetunnel nodetunnel 4096 Aug 30 19:33 /home/nodetunnel
-
Infinity8____
drwx------ 2 root root 4096 Aug 30 21:08 /home/nodetunnel/.ssh
-
Infinity8____
-rw-r--r-- 1 root root 750 Aug 30 21:08 /home/nodetunnel/.ssh/authorized_keys
-
ndorf
yeah
-
ndorf
do this:
-
ndorf
sudo chgrp nodetunnel ~nodetunnel/.ssh && sudo chmod 750 ~nodetunnel/.ssh
-
Infinity8____
done
-
ndorf
it should work now.
-
Infinity8____
looks successful
-
Infinity8____
so what was wrong? dumbed down
-
ndorf
the 'nodetunnel' user could not read its own .ssh directory, it was readable only by root
-
ndorf
and sshd changes to the target user before reading that file.
-
Infinity8
ah. because I created the file as root
-
Infinity8
not as nodetunnel
-
ndorf
yes
-
ndorf
it's better to have the file owned by root, in this case
-
ndorf
so that only root can change it
-
ndorf
but you need this extra step so that the original user can still *read* it
-
ndorf
file *and* dir owned by root, i should say
-
Infinity8
freaking linux and it's permissions
-
Infinity8
oh wells
-
Infinity8
I was reading that I can just set some things but it's just better to adjust the permissions on the dir/file
-
ndorf
hehe
-
Infinity8
like loosen up some security stuff
-
ndorf
dunno why you'd want to loosen up any security stuff. you only need to get the permissions right once :)
-
ndorf
btw, you can add two more options to the hardening config if you like
jonathancross/jc-docs #16/files
-
Infinity8____
it's the easier of the two. at a higher cost
-
ndorf
"PermitListen none" and "PermitTTY no"
-
Infinity8____
in sshd?
-
Infinity8____
yup..
-
ndorf
yes, under your Match User nodetunnel section
-
ndorf
not that it isn't already hardened enough, but might as well
-
Infinity8____
meh. only local users on the network can access it
-
Infinity8____
I'm satisfied
-
ndorf
yeah, this is already way more than good enough for that
-
Infinity8
thanks ndorf
-
ndorf
you got it
-
Infinity8
Msg me your XMR address
-
ndorf
not at all necessary, just glad to help
-
Infinity8
cool beans
-
Infinity8
I'm trying to support network by running node
-
Infinity8
and I got attacked because I left RPC open lol
-
Infinity8
they kept mining on my node
-
Infinity8
those bastards
-
ndorf
oops, haha
-
Infinity8
Hope they enjoy those juicy 200h/s
-
ndorf
not too bad a way to learn that lesson, honestly
-
ndorf
at least they didn't get to your actual stuff
-
ndorf
200h/s lol
-
Infinity8
Yeah it's a Q9550
-
Infinity8
It doesn't even support hardware AES lol
-
ndorf
ouch
-
Infinity8
Yeah, I'm going to upgrade it slowly. Finally got my SSD in it today
-
ndorf
i bought a rack server from ebay like that, xeon L5520 cpu
-
Infinity8
yeah, this is like a spare DDR2 Intel Core 2 Quad machine
-
ndorf
fortunately the just barely better l5630 to replace it with are only $5 on ebay themselves :)
-
manifest
i got one of those in the closet
-
Infinity8
I don't keep any keys on my node server so they wouldn't be able to do anything i think
-
Infinity8
Like somehow redirect my transactions? I don't think that's really possible
-
ndorf
yeah, not much
-
ndorf
block your outgoing tx, sure, but only until you switch nodes
-
ndorf
they could make you think you have a confirmed transaction from them that isn't real, probably
-
Infinity8
yeah, that would have to be an extremely specific attack lol
-
Infinity8____
block my outgoing transactions, I would probably just spend some time to figure out how to get my node to work again
-
Infinity8____
and restart monerod
-
Infinity8____
I don't use 3rd party node and never used one for monero
-
Quotes
diisssscoonneeeeeee ♪ ┗(^0^)┓ ♪
-
sunwind
hey guys. I'm trying to use xmr.to, it's telling me "invalid monero amount", and that's all, any idea why it would be invalid?
-
sunwind
"check amount data type" = ?
-
manifest
4,2 vs 4.2?
-
sunwind
hm?
-
manifest
, or . as the decimal separator
-
manifest
might not even be an issue but only thing i came up with off the bat
-
sunwind
yeah it's . - I copied the amount directly from my wallet and just pasted it in
-
sunwind
is there maybe too many digits after the separater? there are 12
-
ndorf
12 sired
-
MalMen
how many subaddresses can an wallet handle ?
-
fluffypony
infinite
-
MalMen
infinite -1 :P
-
MalMen
what is also infitnite
-
azy
i dont think thats true, theres a limit to how many you can access with the cli software at least
-
MalMen
but, it would not decrease the performance of the wallet if we have alot fo subaddresses to check ?
-
azy
im waiting for an update so i can access index 329502359024234634
-
MalMen
I am making an payment processor, Im in doubt if I can just create one new subaddress for each transaction, or if I should reuse them after some time
-
selsta
2^32 accounts with 2^32 addresses each
-
selsta
MalMen: should not decrease performance, a lookup table is used
-
selsta
might increase required RAM
-
asymptotically
you can get quite far without any slowdown, but i only got into the tens of thousands when testing and not 329 quadrillion like azy
-
azy
i generated that specific index, not every one up until that index
-
fluffypony
azy: to be clear, I meant "practically infinite"
-
fluffypony
it's unlikely any application will ever come close to the addressable limit
-
fluffypony
highly improbable
-
Mochi103
What about one specifically designed to try?
-
Mochi103
Only time is stopping it.
-
Mochi103
:P
-
azy
yeah maybe i want to start at index a trillion and work backwards
-
sunwind
i.ibb.co/wL0QppX/Untitled.png anyone know why this isn't working?
-
sunwind
"invalid monero amount" soon as I click next
-
moneromooo
If you're going to ask questions about X and post a screenshot, don't hide the X. Unless you really don't want help.
-
sunwind
I clicked 'use non java version' at the top, entered the xmr amount, and now I get a popup saying valid nearest amounts are the amount I entered but minus 3 or 4 of the last digits
-
sunwind
removed the last 3, got to the next step
-
Mochi101
xmr.to doesn't like dust?
-
duso
Looks like monero has been banned in Australia.
-
sethsimmons
Link to a source?
-
sethsimmons
Or just the vague delisting announcement?
-
sethsimmons
I have yet to see any source for a governmental ban/regulation release
-
duso
-
sethsimmons
Doesn't mention Monero or cryptocurrency, but scanning now
-
duso
-
sethsimmons
oh this is that?
-
sethsimmons
Its 2y old
-
duso
Old links. From what I have read it the banks are debanking any exchange that trades monero in Australia
-
sethsimmons
This doesn't seem in any way related to Monero or cryptocurrency for that matter
-
sethsimmons
From what I see
-
sethsimmons
Its about an encryption ban in general, which hasn't happened AFAIK
-
sethsimmons
<duso "Old links. From what I have read"> Any link for that? I saw the one delisting announcement but nothing backing it up as of yet
-
duso
-
sethsimmons
Hmm
-
sethsimmons
Confusing since they say things like this: "Exchanges that do not comply with the crackdown by either delisting all privacy coins or removing access to Australian traders by August 31 will be debanked." and yet say there isn't any official notive
-
sethsimmons
*notice
-
sethsimmons
So I'm not sure where they're getting that info
-
sethsimmons
But interesting nonetheless
-
Thominus
I remember when the Clinton admin tried to ban strong encryption in the 90's - everyone in the crypto industry just located elsewhere - Debian had split the distro into the "NON-US" versions - I wonder if that will happen with Australia
-
sethsimmons
If Australia (a country notorious for violating technological access to privacy) is afraid of Monero then we're doing something right.
-
sethsimmons
Although Verge being in the same list makes me chuckle, because obviously they have no real idea what they're doing
-
duso
I still can't find any actual legislation relevant since 2018
-
duso
-
duso
So what regulation are they using to threaten debanking exchanges?
-
duso
anyway, will have to use DEX's to buy in from now on. It's late, night all
-
MalMen
-
MalMen
what are they doing ? black magic ? lol
-
anicow
hm.
-
sethsimmons
-
sethsimmons
MalMen anicow
-
sethsimmons
Not enough detail to worry ATM
-
MalMen
exactly
-
anicow
thanks for the post
-
sethsimmons
np!
-
alexanarcho[m]
Hey Guys! To all the javascript/react devs out there. hundehausen and I have gone through the pain of setting up monero-javascript with webpack to include react and tailwindcss. This setup process was tedious for us (we are also noobs and were only able to do it with expert help). But I thought i would dump the sekelleton here for everybody that wants to use it as a starting point.
-
alexanarcho[m]
why? well, react is awesome, so is monero, so is webassembly. monero-javascript gives you the option of creating CLIENT BASED BROWSER WALLETS. i.e. NON CUSTODIAL. how rad. Go nuts, i would love to see more react projects using monero wasm!!!
github.com/AlexAnarcho/tipxmr
-
alexanarcho[m]
While I am at it: we are starting our OBS Livestream Bot here on github.
github.com/hundehausen/tipxmr feel free to join in! Javascript and React is the most useful, but anybody familiar with Tailwindcss as a UI framework can contribute as well.
-
kayabaNerve
alexanarcho[m]: You linked the tip bot twice
-
alexanarcho[m]
@kayabaNerve no, one is my personal github, this is just the fork of the skelleton, i will not modify it. the other repo we will modify and extend to create the obs tipbot
-
kayabaNerve
Oh. Thanks for the clarification
-
alexanarcho[m]
np ;)
-
Mochi101
moneromooo, we need to raise the Monero tx fees for the miners. mETH miners are getting rich right now.
-
Mochi101
Monero miners want to be rich too.
-
moneromooo
Make a tx with a monero fee.
-
Mochi101
:D
-
yanmaani
> Ryan Taylor, the CEO of Dash — another privacy-oriented cryptocurrency — told Cointelegraph that there is a big difference between the DHS tracking Monero transactions versus personal transactions
-
yanmaani
lol scam
-
sethsimmons
Aren't all transactions necessarily someones personal transactions?
-
dsc_
Damn, I want to be CEO too!
-
sethsimmons
Or do they cease to be personal when you're a dirty "criminal"
-
yanmaani
well, you see, money laundering is a crime
-
sethsimmons
"You bunch of math criminals!"
-
sethsimmons
"Quit hiding behind your math and cryptography and give over all your data to us"
-
yanmaani
Would it make any sense to add 'shielded pools' to monero, like in zcash? Or would it just not work with the present system?
-
artefact
what's the point?
-
yanmaani
You can sort of draw up a (very bad) txn graph as things are now
-
yanmaani
you couldn't do that with shielded pools, right?
-
sethsimmons
There is no "unshielded pool" in Monero, so necessarily it's all "shielded"
-
sethsimmons
It's just a different method of "shielding"
-
sethsimmons
As shown in the recent Zcash "tracing", you can do the same sort of thing if you have enough external data
-
artefact
so you want more sender anonymity?
-
sethsimmons
I'm not sure what you mean -- I want anonymity for both sender and receiver
-
sethsimmons
Which is what we currently have, with some obvious nuance/caveats/risks as have been broken down at length in Breaking Monero and elsewhere
-
yanmaani
sethsimmons: Right, but zcash has a different kind - the anon set for the shielded pool (in theory) is all the users
-
yanmaani
whereas in monero, it's just your current ring size
-
sethsimmons
In theory, and thats great if people both use it properly, and use it enough
-
sethsimmons
But no one does either so it still leaks plenty of metadata to trace through
-
sethsimmons
s/no one/few
-
sethsimmons
The anon-set in Monero is not 11 as commonly shared/stated
-
sethsimmons
It is also some sub-set of all users back along the chain of key images used in each ring signature
-
sethsimmons
There isn't a set number because it depends on a lot of factors
-
sethsimmons
But you gain anonymity set from each un-known decoy and all of the unknown decoys in the transaction graph up to that point for the decoy
-
yanmaani
If someone hacks and exchange and walks away with XMR 1 million, then what? They will know what txid it is, of course, and then those in the same ring will also be tainted
-
sethsimmons
I'm not sure what you mean
-
sethsimmons
If they get access to the hot wallet of an exchange and harvest the TX info?
-
sethsimmons
Nothing would be tainted, as Monero is not interactive
-
sethsimmons
You can have the decoy from a "bad" transaction without any interaction/choice
-
yanmaani
sethsimmons: If you steal a lot of money
-
yanmaani
and they know it was sent in transaction X
-
sethsimmons
You're not actively choosing to participate with a "bad" user in any way
-
yanmaani
No, but they'll still be able to identify the stolen funds with accuracy ~ 1/11, no?
-
sethsimmons
They can't tell if a key image/output is truly spent or not
-
sethsimmons
If you transfer out money from an exchange wallet they know that those inputs are spent (if they recover the wallet after), but can't tell past that when funds are moved again, as they could just be decoys
-
alexanarcho[m]
realize that "anonymity set" is always relative to a starting point. if i send xmr from binance to my wallet, binance knows the true spending output, since it is their wallet. if i then send the xmr to somebody else, my anonymity set is 11 (as ring size is 11). the following tx has anonymity set of 121 (11x11) and so on. 11² essentially.
-
alexanarcho[m]
pls correct me if i m wrong, but it is impossible to tell the general anonymity set for a xmr tx
-
sethsimmons
Thats the whole design of the system -- break any clear statistical/heuristic ties that let you say "this is 100% the true spend"
-
-
alexanarcho[m]
gotta love monero
-
alexanarcho[m]
really pumped for trypich or whatever its called
-
artefact
i don't think that's true
-
artefact
take any given transaction. you can walk "up" the chain of inputs as many times as you want
-
artefact
binance doesn't know if your output is really spent or not in a transaction you make
-
alexanarcho[m]
true
-
alexanarcho[m]
good point, so the chain can have my output as a decoy, but in reality it is still unspent
-
artefact
if you steal 1 million xmr, nobody will know just by looking at the chain. well maybe if you have tons and tons of inputs