Problems with remote connection bet. Linux and Win using SSH and Putty
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.