how to specify the port using ssh
please i have a problem and hope an can help
i have connected from my laptop to a computer having public ip using ssh , the connection was done successfully since it asked me for the passoword
now i am connected at this pc when i wrote : ssh username@global ip
the problem i am facing now is that i want connect from this pc to another pc on the same local networkhaving the local ip of this new pc , i wrote
ssh -L 5900:localhost:5900 hanadi@ 10.170.8.39
but it gve me
connect to host 10.170.8.39 port 22: Connection refused
the question how can i connect to the pc with ip 10.170.8.39
from the pc which i conected to it from my laptop using ssh
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu openssh Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask hanadi for more information if necessary.