SSH Only works as a guest [SOLVED]
-
No, Still no luck, sorry.
-
@chaska04 That's easy to check - exit Emulationstation and check if the process is running:
ps -ef | grep sshd
-
I've ran the script but I'm not sure what to do next?
-
@chaska04 You can enable it manually by running.
sudo systemctl enable ssh
Reboot after the command and try again.
-
Yes! That Enabled SSH. As I can see when I press
f4
. But It still doesn't work with FileZilla
As it did before FileZilla says "Server unexpectedly closed network connection" -
@chaska04 Then please give more details about your system - https://retropie.org.uk/forum/topic/3/read-this-first. SSH is installed by default and the command I posted earlier should have enabled it. If it doesn't work, then it's something with the client you're using.
-
@mitu
Pi Model or other hardware: 3 Model B
Power Supply used: I'm using the official Raspberry Pi Plug, This same adapter worked with ssh on a different card.
RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest):
Built From: (Pre-made SD Image on RetroPie website - retropie-4.3-rpi2_rpi3.iso)
USB Devices connected: Wireless Keyboard+Touch Pad Combo Mini-USB Adapter
Controller used: 8BitDo Nes30Pro
Error messages received: (Can't Access This)
Log found in /dev/shm/runcommand.log (if relevant): (Can't Access This) -
@chaska04 Did the commands @mitu gave you give any output? Then post it here inside a codeblock please.
Pressing ssh multiple times shouldn't be a problem since it asks you the question if you want to enable it, which you have to answer with "yes" or "no". Saying "yes" multiple times doesn't toggle ssh on and off.
-
@clyde
I now know that SSH is enabled as when I pressf4
It says that SSH is enabled. But yet I can't connect. -
@chaska04 Try to use ssh with the -v option (= verbose) to get a more detailed output.
ssh -v pi@retropies_network_address
You can expand the output even further with
-vv
and-vvv
. If you post the output here, please use a code block, but make sure to anonymize any compromising information in the text.edit: This command is meant to be entered on the system that tries to connect to the pi, not on the pi itself. You'll have to change "retropies_network_address" to, you guessed it, your Retropie's network address. ;)
-
@clyde
I typed in your command on my windows pc and the output was a failure'ssh' is not recognized as an internal or external command, operable program or batch file.
-
@chaska04 Windows does not have SSH built it, you need to download a SSH client for windows - Putty is the most used and it's open source.
-
-
-
@mitu Could I just run the command on a Mac?
-
@chaska04 said in SSH Only works as a guest:
Could I just run the command on a Mac ?
Sure, macOS has
ssh
built it, just run the command @Clyde suggested from a terminal window. -
@mitu My SUCCESSFUL output was:
OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to <MyIp> port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/Steve/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Raspbian-5+deb8u3 debug1: match: OpenSSH_6.7p1 Raspbian-5+deb8u3 pat OpenSSH* compat 0x04000000 debug1: Authenticating to <MyIp>:22 as 'pi' debug1: SSH2_MSG_KEXINIT sent Connection closed by <MyIp> port 22 ``
-
@chaska04 With successful you don't mean a working connection, I presume? Because the connection seems to have been closed right after the start of the key exchange. Normally the
debug1: SSH2_MSG_KEXINIT sent
is followed by adebug1: SSH2_MSG_KEXINIT received
and more messages about the key exchange.Can you read the log file
/var/log/auth.log
from Retropie and show us the lines with timestamps that correspond with your connection attempt?Does ssh show more than
debug1: SSH2_MSG_KEXINIT sent Connection closed by <MyIp> port 22
if used with
-vv
or-vvv
?By the way, I'm not an expert in ssh or networking, I'm just trying to collect more information for people who are. So if anyone here with more knowledge wants to step in, be welcome. :)
-
When I meant successful I was referencing to when it didn't work on my PC. Because Termin Doesn't have SSH built in!
-
@chaska04 I thought as much, but it's better to know for sure. You can display the contents of
/var/log/auth.log
with this command on the Retropie terminal console:cat /var/log/auth.log
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.