LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2009, 09:10 AM   #1
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Rep: Reputation: 15
use putty connect my linux machine


I have just installed SUSE Linux Enterprice Server 10. I think the network is working. I can ping other server from this new installed server, I can also ping the new server from ohter server. But I can not connect new installed server with putty. Why? Also, when I type ps - A | grep 'ftp', it seems no ftp server is working. How to start ftp server?

Thanks,

Lisa
 
Old 01-26-2009, 09:17 AM   #2
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
did you set up SSH / OpenSSH on your linux box?

depending on distro, ftp servers aren't started by default.
check your ftp config how they're started.

often ftp servers are also only 'started' when a connect is made to the ftp port via inetd.
in proftpd for example you can set that in the config file, others should be similar

Last edited by rsciw; 01-26-2009 at 09:32 AM. Reason: meant SSH not SSL...
 
Old 01-26-2009, 09:24 AM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I might suggest either sshd is not running or port 22 is not open/being listened on correctly. Try running "ssh localhost" to test if sshd is correctly running.

FTP can be very dangerous so it's generally not enabled by default, a safer option is SCP which is included in the SSH Daemon and works over the same port as SSH with the same encryption.
 
Old 01-26-2009, 09:29 AM   #4
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
too little info....
can you ping google.com or yahoo.com too?
any way I guess you have a problem with your subnet settings!?

what class of IP addressing scheme are you using? like if you use class C , usually your subnet mask is 255.255.255.0
if you are connected to the internet you have to use privates IP addresses (if you do not have a registered address from Internic). and every other machine on the network has to follow the same rules Unless you have a gateway that connects your LANs together.
are you running the ftp daemon?
ftpd
 
Old 01-26-2009, 09:34 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If a service is installed, then you can start most services with "sudo /usr/sbin/rc<service-name>".

To configure a service to start with certain run levels use "sudo /sbin/chkconfig <service> <runlevels>"

For example:
sudo /sbin/chkconfig vsftpd 35

It doesn't seem that you have configured ssh or vsftpd. For vsftpd, there is a "system-config-vsftd" package you can use that installs a /usr/bin/system-config-vsftpd graphical configuration wizard.

For ssh, you need to configure /etc/ssh/sshd_config on your server and create a key pair in your home directory on the server (if you use public key authentication). You can use putty's keygen program to create a key pair for your putty client as well. Then load in the private key, and have an openssh compatible public key displayed at the top of the program; which you can copy & paste to provide a public key entry for your ~/.ssh/authorized_keys file in the server. Also look at the comment instructions in the sshd_config file (just above the UsePAM line) for instructions on settings to use for PublicKey only authentication. Also consider "AllowUsers" to further lock down your server. If you don't need server <-> server cron jobs, then consider disabling root ssh logins.

good Luck!

Last edited by jschiwal; 01-26-2009 at 09:36 AM.
 
Old 01-26-2009, 09:40 AM   #6
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
When I run 'ssh localhost',
The authenticity of host 'localhost' (127.0.0.1) can't be established. RSA key fingerprint is XXXXXXXX Aer you sure you want to continue connecting (yes/no?) I typed yes. Then, ask for password.

I don't know how to start ftp server.


Thanks,


Lisa
 
Old 01-26-2009, 09:46 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You should be using "ssh <username@host>" to connect from a remote computer to the server. If you are on the server, then you don't need to use ssh since you are already using a terminal on the server. localhost means the same machine. If your server is named "localhost", then you didn't set a hostname and should do that.

Which ftp daemon did you install? I gave the answer for starting the vsftpd daemon, which is an ftp server. If you installed the generic ftp server then use "ftpd" instead of "vsftp". The chkconfig command I gave will configure it to start at runlevels 3 and 5, as well as start the service.

Also as indicated, make sure that the ports are open. Run "sudo /sbin/yast2 firewall" if they aren't. ( or run yast2 and select the SuSEfirewall module ).

If you will be administering a Linux server at work, and you don't use a Linux workstation (a shame), I would at least install Cygwin/X on your windows workstation. Then you can use the same openssh client that you would from Linux. This will allow you to run graphical apps remotely as well via ssh, including running YaST2. This might save a trip to the server!

Last edited by jschiwal; 01-26-2009 at 09:49 AM.
 
Old 01-26-2009, 09:52 AM   #8
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
create a key pair in your home directory on the server ? I don't know how to do it. I found it is too complicated to me. Why there is no SSH configuration setting when I installed. I thought last time I installed SUSE, everything was fine.
 
Old 01-26-2009, 09:58 AM   #9
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
That's only if your using public key authentication which I suspect you don't, I would check the firewall as jschiwal stated how to do (I don't know Suse after all), just to check you did ssh localhost on the server rather then the client of this ssh relationship. If so then sshd appears to be working.

As for FTP, you have to install a daemon if one is not present and then set it up. FTP is generally not enabled/installed by default but can be installed in an optional package on most installers, FTP is completely unsecure thus why most distributions don't automatically start it up from the start.
 
Old 01-26-2009, 10:19 AM   #10
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Hi, thanks for all your reply. When I installed SLES, I just chose all the default softwares to installed. I may ask a stupid question. How can I know if ftp is installed or not?

Thanks,

Lisa
 
Old 01-26-2009, 10:44 AM   #11
dbogdan
Member
 
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174

Rep: Reputation: 31
What version of SLES did you install ?

SLES10 SP2 installs SSH, but disables it by default

You can easily user yast to enable/configure/ SSH and FTP as well as adding allowed ports to the firewall.
 
Old 01-26-2009, 11:19 AM   #12
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
I installed SLES10 sp2. How to enalble/configure SSH and FTP. Would you please list a detailed steps? I am really new to Linux.

Thanks,


Lisa
 
Old 01-26-2009, 12:53 PM   #13
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Actually, I found the reason. Firewall defaully set up as start. After I stop it, ftp and ssh works.


Lisa
 
Old 01-26-2009, 02:18 PM   #14
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Just to note, It'd be safer to turn the firewall on and instead open ports 21 (ftp) and 22 (ssh). I did say it fairly early on it'd very likely be one of the two things and turns out it was port 22 being blocked then.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
putty to connect to my linux server, the keyboard(keypad=number:1,2,3...)cannot use? hocheetiong Linux - Newbie 4 08-13-2008 11:52 AM
how to connect a window machine to linux machine sibi_mangadan Linux - Newbie 5 03-29-2008 01:30 PM
putty and trying hard to connect to a linux server nass Linux - Networking 1 03-14-2008 05:26 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 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