how to use ssh to connect to other p

Asked by hanadi

hi
please i want to connect from my pc having ubuntu to another pc having public id
on the other pc i have a user name and password when i log in to this pc i have to connect to another pc those two pc are on the same network
i installed SSh
and i wrote from the command prompt ssh username@ global ip of the computer i want to connect to
i asked me about the password i entered it
it gave me this :
The authenticity of host the global ip can't be established
are you sure you want to continue i wrote yes
it wrote :Permanently added the ip to (RSA) to the to the list of known hosts
the question is : i want to know if now i am connected to the pc ?
and how i could connect from it to another pc on the same network locally i know the ip of the other pc
please i will be glad if you could answer me as soon as possible

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Douglas Moyes (aragorn-stellimare) said :
#1

If you want to know what computer you're connected to, use the "hostname" command. That'll tell you the host name of the computer you're logged into.

ssh will only ask you about "Permanently added the ip to (RSA) to the to the list of known hosts" till you answer yes. Seeing this usually means you've made a successful SSH connection, bout you haven't connected to the server till it completes the authentication process.

To connect to any machine, it must be running an sshd server (sudo apt-get install sshd), and the ssh port (22) must not be blocked (typically on installing sshd, port 22 is unblocked).

Then just issue:

ssh remoteuiserid@remotehostnameorIP
or:
ssh -X remoteuiserid@remotehostnameorIP
if you're wanting to run X11 apps from your remote machine and have them appear on your desktop as if running locally... thought a little sluggish to respond to user commands and screen updates...

Can you help with this problem?

Provide an answer of your own, or ask hanadi for more information if necessary.

To post a message you must log in.