Ssh help/background music
-
@mitu I've tried but I'm.now getting a network error. Software caused connection abort message.
-
@Jste84 Please give us the exact error messages, as we can't deduce much from a summary like "a network error".
-
@Jste84 Most likely the procedure didn't fix - can you run
systemctl status ssh
again and see if any errors are shown, from the log ? -
@mitu said in Ssh help/background music:
@Jste84 Most likely the procedure didn't fix - can you run
systemctl status ssh
again and see if any errors are shown, from the log ? -
@Clyde said in Ssh help/background music:
@Jste84 Please give us the exact error messages, as we can't deduce much from a summary like "a network error".
-
-
Are you sure ssh is running? How did you run raspi-config before? you should use it again and make sure the ssh service is running on boot.
also you can do
tail /var/log/auth.log
or just nano to it and look at the last lines to see why it kicked you off. If it is running, that is. -
Putty is a simple program, doesn't need to be re-installed. The errors in the
ssh
service indicate thatsshd
doesn't work correctly, hence the Putty error. If you run - from a command line on the Pi -ssh localhost
, you'll probably also receive an error.I've run the procedure to reset the SSHD host keys and they are re-generated - make sure you've correctly executed the steps on that page and that you restart the
ssh
service. -
@mitu maybe im doing it wrong. When I'm following the guide and get to the step keygen and it says remote server name here.... What should I be putting in?
-
@Jste84 The keygen step is the execution of
sudo dpkg-reconfigure openssh-server
Are you executing that on the PI ?
-
@mitu yes executed that on the pi. Was looking at step 3? Do I need to do that? And if so do I do it on the pi?
I
-
Step 3 is not necessary - that's just for the SSH clients which connected before to the same machine.
-
@mitu If he needs only a possibilty to copy some files then why not set port to 21 and use FTP? This should work out of the box.
-
@cyperghost said in Ssh help/background music:
If he needs only a possibilty to copy some files then why not set port to 21 and use FTP?
FTP is a different protocol, you'd need a FTP server, while SSHD only provides
sftp/scp
. -
@el-chupacabra said in Ssh help/background music:
Are you sure ssh is running? How did you run raspi-config before? you should use it again and make sure the ssh service is running on boot.
also you can do
tail /var/log/auth.log
or just nano to it and look at the last lines to see why it kicked you off. If it is running, that is.Ssh should be running. I've enabled it via raspiconfig. Tried this via both the retropie settings and manually by quitting emulation station
-
@mitu ahh ok that's what I thought. Then yes, step 1 and 2 are complete. I keep getting remote side unexpectedly closed network connection message from putty
-
Still getting the same error when I enter systemctl status ssh
-
@Jste84 Strange - are you sure your SD card is ok ? After step 1 - removing the host key files -, can you check that the files are really removed from
/etc/ssh
? -
@mitu said in Ssh help/background music:
@Jste84 Strange - are you sure your SD card is ok ? After step 1 - removing the host key files -, can you check that the files are really removed from
/etc/ssh
?SD card is new, bought from a store rather than online, so absolutely shouldn't have any issues.
Silly question, but how would I know if they'd been removed? Or if they were there to begin with?
Also how do I check etc/ssh?
-
@Jste84 said in Ssh help/background music:
Also how do I check etc/ssh?
You can use
mc
(Midnight Commander) to browse the filesystem, or just runls -l /etc/ssh
to see if the files you removed in Step 1 are still there.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.