Ssh help/background music
-
Hi,
Hoping you can help with this.
I'm trying to ssh into retropie, which I've done several hundred times, but this time I'm having no joy.
I'm making a 2nd retropie, as a gift and I keep getting error messages that I've not encountered before.
I'm using the latest build of retropie, in a pi 3b. That's all worked. I've enabled ssh via raspiconfig in the retropie menu. I've tried using putty and winscp but am having no joy
I've tried both RETROPIE and my pi's IP address as the host name.
Username and password as pi and raspberry
Im trying to add audio files for background music. Is there anyway I could do this via USB if I can't ssh in? (I've tried making a bgm folder on it and plugging it in, buy no joy)
If anyone can help it would be much appreciated
-
Since background music is an add-on that's not part of RetroPie, the USB transfer method doesn't work. What's the error you get when you try the SSH connection with Putty ?
-
@mitu said in Ssh help/background music:
Since background music is an add-on that's not part of RetroPie, the USB transfer method doesn't work. What's the error you get when you try the SSH connection with Putty ?
Ok when I use winscp the message I get is sftp connection unavailable but something about FTP being available.
Ive enabled ssh, so not sure why this would be?
-
Check if the SSH service is running, from the PI:
systemctl status ssh
You should get something like:
● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2019-07-26 15:58:35 EEST; 3 weeks 2 days ago Main PID: 748 (sshd) Tasks: 1 (limit: 4915) CGroup: /system.slice/ssh.service └─748 /usr/sbin/sshd -D
If the status of the service is not 'enabled/running', then SSH is not working on the PI.
-
@mitu I've done this and I'm getting this message back
I'm guessing the bit underneath isn't what you'd expect to see?
-
Wish I knew what was causing this. If anyone can help it would be much appreciated
-
@Jste84 said in Ssh help/background music:
Wish I knew what was causing this. If anyone can help it would be much appreciated
Still struggling with this If anyone can help, would be appreciated.
-
Are there any error messages from ssh in putty or from WinSCP?
You also could give us the output from ssh with the
-v
option. For examplessh -v pi@retropie
or whatever username and hostname your Retropie is accessed by in the network. With-v
, ssh gives much more information that may point in the right direction. If you want, you may anonymize the output to some extend, as long as it remains original enough for debugging. -
This is the output of the file you mentioned. Any idea what this means?
-
-
Try re-generating the
sshd
server keys - maybe the errors shown in the log have something to do with the connection not working - https://www.cyberciti.biz/faq/howto-regenerate-openssh-host-keys/. -
@Jste84 said in Ssh help/background music:
This is the output of the file you mentioned. Any idea what this means?
It says that (some of) your ssh host keys on the Pi couldn't be read, which could be fixed by the method that @mitu linked to. Maybe that will solve your problem.
But I asked you for any messages on the system you're trying to connect to your Pi from by whatever means you tried to connect to your Pi with (WinSCP, ssh in putty, etc.).
-
@Clyde said in Ssh help/background music:
@Jste84 said in Ssh help/background music:
This is the output of the file you mentioned. Any idea what this means?
It says that (some of) your ssh host keys on the Pi couldn't be read, which could be fixed by the method that @mitu linked to. Maybe that will solve your problem.
But I asked you for any messages on the system you're trying to connect to your Pi from by whatever means you tried to connect to your Pi with (WinSCP, ssh in putty, etc.).
I was getting a message saying sftp unavailable, but FTP is available.
I've done the above and I'm now getting a message saying network error....
-
@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.
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.