LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-14-2006, 11:04 AM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
Question 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...
 
Old 07-14-2006, 11:50 AM   #2
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
You should be able to log in as root from Putty.

What error message does it give exactly?
 
Old 07-14-2006, 12:50 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Access Denied
 
Old 07-15-2006, 02:15 AM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
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: Reputation: 45
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.

Last edited by Micro420; 07-15-2006 at 02:17 AM.
 
Old 10-02-2006, 10:53 PM   #5
erosszz
LQ Newbie
 
Registered: Sep 2006
Location: Ibaraki-ken, Japan
Distribution: Red Hat 8.0
Posts: 14

Rep: Reputation: 0
where i can find the "sshd_config"?
 
  


Reply

Tags
putty, root, sshd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection from Linux to Windows using PuTTy legendaryhwk Linux - Security 2 04-05-2006 06:34 PM
Problem with remote terminal (ssh and PuTTY) guardian653 *BSD 11 02-09-2005 06:16 AM
how to remote download file by putty SSH? treotan Linux - Newbie 5 08-02-2004 10:47 PM
Putty SSH remote desktop Solved learner_driver Linux - Networking 1 07-05-2004 03:02 PM
problems getting remote ssh/X connection working fabs Linux - Newbie 6 03-01-2004 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration