#oh wait so I need to add this to a hosts

1 messages ยท Page 1 of 1 (latest)

inland mountain
#

that was my last prompt

round wharf
#

No. You missed the -i in front of the key file path so it thinks it's a hostname

inland mountain
#

yeah

#

you were right

#

and in it deferring to next auth (pass) as well

#

says next auth method: password

#

so it deferred to it

round wharf
#

Can you show the whole output? Also check the logs for the SSH server on windows

inland mountain
#

Im having trouble copypasta to and fro the terminal

#

(is why I had to paste the image above)

#

I would have just pasted the whole text otherwise

round wharf
#

Use putty instead of the web site to connect to the addon's SSH server ๐Ÿ™‚

inland mountain
#

that sounds familliar but cant put my finger on it

#

can't I just give it a password in the string

#

๐Ÿ˜„

round wharf
#

Apparently it's not so simple if you google for it

inland mountain
#

sorry you lost me there

#

you probably gathered I don't know ssh for shit

#

this is where I am currently: I know I have to let the hosts file know the key

#

I don't know where to find it

round wharf
#

Search for ssh give password on commandline. Apparently it's not as trivial as it sounds. Not sure why

inland mountain
#

lol

#

please don't mock me

round wharf
#

I'm not

#

Does ssh-copy-id work?

inland mountain
#

yeah

#

still asks for password

#

everytime

#

for everything

#

there's no getting around it

round wharf
#

I need to see the command output

inland mountain
#

I tried to

#

[aste but it wont let me

#

there's a whole wall of text

#

I was going through it tryin to find a screen at least

#

otherwise I'd have to paste 3 screens

#

I really didn't wanna change the initial rsa

#

I am using the same key for other stuff

#

wanted to keep it

#

tried passh

#

and sshpass

#

didnt work

#

why does it want a password if I ive given it a key though

#

"we sent a packet wait for reply
received type 51

#

auth that can continue:

#

pasword public key etc

#

I think this is the gist

#

type 51

#

ok Im talking to myself

#

sorry to have wasted your time ๐Ÿ˜ฆ

round wharf
#

Sorry I can't always immediately respond. Paraphrasing the output won't help

inland mountain
#

I would have pasted but theres 3 screens

#

permissions 0644

#

how do I give it the ones it wants?

#

maybe this would be easier

#

IDK

round wharf
#

Are we talking about windows now or? I never saw the permission message

inland mountain
#

I presume the permissions are for the folder containing the rsa key

#

which is on linux

round wharf
#

You shouldn't modify the config folder directly but you can create a new one (mldir /config/.ssh) and chmod 600 /config/.ssh that one instead

#

But again, I'm lacking a lot of context so I'm basically just telling you how to do what you think you should do. Whether it is what you should do ๐Ÿคท

inland mountain
#

chmod 600 /config/pwless

#

that was my last command

#

but it returned nothing

#

*pwless is the name Ive given the folder

round wharf
#

Check the permissions with ls -l /config/pwless but it's normal to not return anything

inland mountain
#

thanks

#

you're very kind to put up with me

#

yeah now it doesn't say bad permissions BUT it still asks for a password

#

=))

#

(ran the command from before, the initial one, that is)

#

-only adjusted to the new situation

#

it worked after giving it the pass

#

jsyk

#

it just wants the password, every time

round wharf
#

Please use putty to connect to the addon via SSH, then paste me the ouput. You should also check the logs for the SSH server. You might have to google how to increase its verbosity though

inland mountain
#

to which addon do I connect putty

#

the Terminal and SSH addon from ha?

round wharf
#

The SSH addon you use can listen on port 22

inland mountain
#

ok

round wharf
#

You use haip:22

#

Might have to check the addon's settings

inland mountain
#

aaand now the SSH addon has a key to it

#

FML

#

=))

round wharf
#

You can set a password for it

inland mountain
#

s6-rc: info: service legacy-services successfully started
[03:34:50] WARNING: SSH port is disabled. Prevent start of SSH server.

#

thats what the addon says now

round wharf
#

Set one. 22 is default

inland mountain
#

why doesnt this shit let me just copypaste from it?

#

I always had this problem

#

the terminal doesnt let me copy paste

#

it's so frustrating

round wharf
#

No idea. In putty you just select

inland mountain
#

the most basic thing, why dont they make it default

inland mountain
#

yeah now my terminal is broken

#

do you know how to give it the password to the target machine via the command line?

#

this would eliminate the need for all the jumping through hoops

#

it wouldnt be elegant, sure

round wharf
#

Like I said, google for it and you'll see it's apparently not trivial

inland mountain
#

but it would get the job done

#

oh

#

thats what you meant then

#

sorry, guess Im really tired

round wharf
#

Everyone refers to sshpass software instead

inland mountain
#

I misinterpret things

round wharf
#

SSH keys are usually simple to use but without the logs I can't really help

inland mountain
#

am still in putty looking where to input the key

round wharf
#

Ssh > data I think

#

Gotta relax a bit now but there's other people here

inland mountain
#

ok man

#

sorry for wasting your time like this I really am

round wharf
#

As long as you learn something it's fine to me

inland mountain
#

okay

#

I'll get to the bottom of it eventually

round wharf
#

But I'm mobile right now and constantly switching apps is tiring and I get nothing done

inland mountain
#

its fine, take care

inland mountain
#

yaaayy it let me in without a pass, just using the initial key after I set the preferences in the guide youve shown me

#

shit, it worked straight up (the button in HA)

#

so basically just needed to set the permissions on the actual key instead of the config folder

#

when I reinstalled

#

setting the right permissions made the command work

round wharf
#

Yay

inland mountain
#

thanks a lot man!!

round wharf
#

No problem

inland mountain
#

your time wasnt wasted , for realz

round wharf
#

I never said it was