I am trying to open port 22 in osx, so I can connect to localhost using ssh. This is my current situation:
ssh localhost ssh: connect to host localhost port 22: Connection refused
I generated a key and transferred it to the authorized_keys file as follows:
sh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Port Scan Network Utility confirms that 22 (and surprisingly 23) are closed.
Context: I am working on creating Hadoop locally. In my configuration, I start services on localhost: #### s and should open messages to them through ssh.
How to open 22? or may I be up against another problem (maybe a wrong-generated key?)
ssh ssh-keys macos
David Erwin Jun 11 2018-11-11T00: 00Z
source share