Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Pages: 1
I run ffp 0.7 and yesterday I got SSH up and running by looking through a few guides, but I must have missed something or some of the guides where misleading.
The connection works just fine, but at every login I get message stating something like "Unable to add host to known_hosts". So everytime I log in I have to answer yes.
After some research I understand that inte the homedir of the root user there should be a folder called .ssh, is that correct? Can't find that on my machine. Is it something I should create my self?
What about the key files, where are they located and should they be moved somehwere?
Appreciate some help regarding this, thanks.
Offline
The adding of a host to the known_hosts file happens on the system you start the ssh command.
So if I start ssh on a linux machine and I go to my DNS-323. An entry is added to the known_hosts file on my linux machine.
This know_hosts files exists in the .ssh directory in the home-directory of the user I use on the linux machine.
So if my user on the linux machine is called user1 and the homedir is /home/user1 there's a /home/user1/.ssh directory on that machine. To see files and directory starting with a '.' (dot) you need to use the command ls -a otherwise these files are "invisible".
If the .ssh directory doesn't exist yet, it should normally be created by the ssh client.
The error you get "Unable to add host to known_hosts" could mean a number of things.
It could mean that the .ssh directory doesn't exist and cannot be created or that the known_hosts file does exist but cannot be written by the user you are using.
In this case I would suggest to check your homedir, the .ssh dir and the known_hosts and there attributes. You can use the following command for this:
ls -ld $HOME ls -ld $HOME/.ssh ls -l $HOME/.ssh
For me it looks like:
user1@linux32:~$ ls -ld $HOME drwxr-xr-x 28 user1 group1 4096 Nov 14 19:45 /home/user1 user1@linux32:~$ ls -ld $HOME/.ssh drwx------ 2 user1 group1 4096 Nov 14 19:45 /home/user1/.ssh user1@linux32:~$ ls -l $HOME/.ssh total 0 -rw-r--r-- 1 user1 group1 442 Nov 14 19:51 known_hosts
especially the drwx------ is necessary for the .ssh directory. This security makes it impossible for anyone than the user1 and root to enter that directory.
HTH
Last edited by rsd76 (2012-11-14 21:01:56)
Offline
Thanks for your input. I have solved the issue, it was completely my fault. I tried to access the dns-323 from my phone and somehow it seems as if the phone isn't able to save to known_hosts.
I have only tried accessing the dns-323 with a computer from within the same LAN and then there's no issue. My phone is at the moment the only way for me to gain access from another network.
But for now it works, so I'm a happy camper.
Offline
Pages: 1