Why does SSH store the fingerprints of remote host when connecting for the first time?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Why does SSH store the fingerprints of remote host when connecting for the first time?
# 1  
Old 08-14-2014
Why does SSH store the fingerprints of remote host when connecting for the first time?

I was wondering why does ssh store the fingerprints of remote host when connecting for the first time?

I will appreciate a detailed response, can't figure it out.
# 2  
Old 08-15-2014
Welcome ChiefGandalf,

When you use an SSH connection for the first time, you have to consider where you are connecting to. The remote server send you a fingerprint that (if you wish) you can confirm before proceeding. Having accepted this fingerprint, connections are then silent, however if someone managed to intercept and assume the identity of the servers IP address, then the fingerprint will not match and you will be alerted. A scheduled attempt to ssh, sftp, scp etc. will fail and assuming that you have correct error checking in your code, then you can choose to be alerted.

As humans, we recognise people by faces & voices and will happily converse with people we recognise. If you go to a criminal forensics level, then fingerprints can be used to ascertain identity.

It comes down to recording who you trust and will therefore be happy to share with in future. This is most important when reaching out through the public internet to a remove service offered by another company. If you wish to do business with them (perhaps bank transaction instructions) then you want to be certain that you are dealing with the right server. You should always confirm with the owner of the remote server that you have the correct fingerprint.

Don't do this be accepting they key and sending them the key though the same connection. Perhaps ask them to send it to you in some other way or read it out phonetically over the phone. Make sure it is someone you trust and that you make the call rather than accept an untraceable incoming call.



Robin
# 3  
Old 08-15-2014
A fingerprint is a hash of a remote site's public key which is stored locally on your computer and used to automatically authenticate that site's public key the next time you access that site.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Connecting remote SSH server which OSS lib to choose ?

Hey i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ? i need it to be cross platform . Thanks (0 Replies)
Discussion started by: umen
0 Replies

2. IP Networking

SSH to remote host using SOCK5 proxy

I am trying to connect to a remote host C from my node host A. HostA <====> HostB <====> HostC A tunnel has already been formed using SOCKS5 between HostA and HostC. Now I want to SSH from A to C. The SOCKS5 IP us 142.133.132.161 and port 1082. The command I am using is : ssh -L... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

3. Shell Programming and Scripting

Connecting to remote host

Checking crontab job entry in 3 different hosts Hi Gurus, I am trying to connect to remote host from current host to check crontab entries. I have started like this ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l" I got this error ? ssh:... (1 Reply)
Discussion started by: rocking77
1 Replies

4. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

5. Red Hat

How to know which application is connecting to a remote host

From a host A an application is trying to connect to host B. From firewall side I can see packets dropped coming from host A to host B. I've access to host A: how can I know which "application" is trying to connect to host B? Thanks, Marco (3 Replies)
Discussion started by: marcopb
3 Replies

6. UNIX for Advanced & Expert Users

connecting through master ssh connection on intermediate host

Suppose host B does not allow public/private key authentication - only secureID authentication. I already have a master ssh connection from host A to host B. Host A does allow public/private key authentication. Is there any way to connect from host C to host B by way of the master ssh connection... (2 Replies)
Discussion started by: cpp6f
2 Replies

7. Solaris

unable to ssh to remote host

server is ok, I can login on console. however, when I use SSH teachia, there is no repsond. i have check ps-ef | grep ssh, it shows ok. restart ssh too. still not working. Anything else I need to check? # ps -ef | grep ssh root 24706 1 0 Jun 12 ? 0:00... (7 Replies)
Discussion started by: uuontario
7 Replies

8. Shell Programming and Scripting

ssh to remote host and execute command

Hi, could anyone please tell me how to ssh to remote host foo and execute command on it and print the result on local host? Thanks, Paresh (1 Reply)
Discussion started by: masaniparesh
1 Replies

9. Shell Programming and Scripting

ssh to a remote host

i want a script with expect or perl or shell which will do ssh to remote host...it will take commandline argument and run the script in remote host....... i.e that will be like ./ssh.exp remoteip username passwd /tmp.kk.sh can someone help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

10. Shell Programming and Scripting

check ssh connection to remote host

I am using KSH and I need to check whether the remote host has been configured with ssh public key. Is there any way we can check inside a script? (6 Replies)
Discussion started by: praveenbvarrier
6 Replies
Login or Register to Ask a Question