LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problems with remote connection bet. Linux and Win using SSH and Putty (https://www.linuxquestions.org/questions/ubuntu-63/problems-with-remote-connection-bet-linux-and-win-using-ssh-and-putty-464018/)

cucolin@ 07-14-2006 11:04 AM

Problems with remote connection bet. Linux and Win using SSH and Putty
 
Hi guys, I'm a total newbie doing these things. I have a LAMP server set up at work on the 4th floor and I'm trying to have a remote connection from my Windows machine on the 6th floor. I installed the openssh-server on the LAMP and putty on the win machine. The first time I tried to log in I got this message: "The server key was not found in the cache. You have no guarantee that the server is the computer you think it is. The server's rsa2 key is: ssh-rsa [some key]. If you trust this host, press Yes. To connect without adding to the cache press No. To abandon the connection press Cancel"

I press Yes. Then it ask me for the "log in as:" So in this case I'm not sure what to enter. In the LAMP machine I only have the root account set up, so I entered at putty and then the password. I'm not able to connect this way. Do I have to set up another user for remote access? I confused about this and I have read the instructions on help.ubuntu.com with no success. Do I have to configure the /etc/ssh/sshd_config file and create an user account?? What is the simplest way of doing this? And if I achive this task would I be able to connect from home?

Thanks guys...

Zetec 07-14-2006 11:50 AM

You should be able to log in as root from Putty.

What error message does it give exactly?

cucolin@ 07-14-2006 12:50 PM

Access Denied

Micro420 07-15-2006 02:15 AM

You need to create a user account on the LInux system you are trying to connect to. The sshd_config file has nothing to do with user accounts. You need to create user accounts via the GNOME desktop, or through the command line as root. I forget the complete command, but it's something like:

useradd -m johndoe <- this creates a user named johndoe and the '-m' creates his home directory
passwd johndoe <- this sets up johndoe's password

Now you can log into the Linux box as johndoe and then login as root if you need to modify something.

Usually one should disable SSH'ing in as root as that is not safe. You can play around with the sshd_config option and have more security and control with it.

erosszz 10-02-2006 10:53 PM

where i can find the "sshd_config"?


All times are GMT -5. The time now is 09:20 AM.