Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Blake Heinemann on April 25, 2001, 07:10:31 PM
-
Not sure how or why, but after I changed the domain name on my esmith box, ssh now isn't working. Says that password is denied in putty, and on esmith, when I look at the logs, it says that it was an invalid password. Yet I can log in from the console with the same password. Anyone else have problems with putty doing this?
-
there are files in the $HOME/.ssh directory which need to be changed after a host name change.
On the e-smith box, regen your keys. use ssh-keygen and
ssh-keygen -d . in both cases overwrite the files. this wull create new id_dsa, id_dsa.pub , identity and identity.pub files.
if you are ssh'ing in from a unix box, on the computer you are logging in from, edit $HOME/.ssh/known_hosts* . delete the lines which refrence the old host name.
if you are using ssh from a pc to e-smith, i've never had to change the known_hosts type file on the pc. there probavly is a file to edit, but I don't know the location or name.
you can get debugging info for ssh by using 'ssh -v ' ...
the above will work with most of my unix computers. there may be 'known_host' like files in /etc or /etc/ssh to check .
if there are delete records which reference your old domain name....