#is my ssh broken? how to fix it?

35 messages · Page 1 of 1 (latest)

tepid yew
#

hey guys. can smb help me out? on my pc i generated ssh key pair, and when im trying to copy my public ssh key, i get this error:

$sudo ssh-copy-id -i ~/.ssh/id_rsa.pub -p 23786 [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/lauris/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
[email protected]: Permission denied (publickey).

what to do in this situation? thanks

languid sluice
#

can you log in manually?

tepid yew
languid sluice
#

Look at the logs like it tells you to

tepid yew
#

worthless info as alwats

languid sluice
#

and journalctl?

#

did you put a file named "ssh" in the /boot directory?

#

and a userconf.txt?

tepid yew
languid sluice
#

that's the exact same command you already showed

tepid yew
#

today i deleted sshd_config on accident and now im trying tofix

languid sluice
#

...

#

ya, that'd be why it's broken

tepid yew
#

but yesterday it was fine

languid sluice
#

it worked before you deleted the configuation file? no way!

tepid yew
#

stop making fun of me. i just answered ur question about putting ssh file in the boot dir

languid sluice
#

LOL not making fun of you, but it's pretty obvious it's not going to work when you deleted the configuration file

#

your screenshot doesn't answer that question, either

#
sudo apt-get remove openssh-server
sudo apt-get install openssh-server
#

might need --purge

#
sudo apt-get remove --purge openssh-server
tepid yew
#

ok, taht helped. now the service is fine

#

but i see that theres still no sshd_config generated

languid sluice
#

yes there is... it won't start without one

tepid yew
#

should i care?

#

wait

languid sluice
#

/etc/ssh/sshd_config

tepid yew
#

ok, i restarted my terminal

#

there is

#

so now i can hop onto my pc and try to ssh to my pi?

languid sluice
#

sure

tepid yew
#

but should i uncomment this?

#

bc i wont be able to ssh to my pi

#

the very first time