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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-26-2009, 10:10 AM
|
#1
|
Member
Registered: Jan 2009
Posts: 40
Rep:
|
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
|
|
|
01-26-2009, 10:17 AM
|
#2
|
Member
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206
Rep:
|
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 10:32 AM.
Reason: meant SSH not SSL...
|
|
|
01-26-2009, 10:24 AM
|
#3
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
|
|
01-26-2009, 10:29 AM
|
#4
|
Member
Registered: Jan 2009
Posts: 114
Rep:
|
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
|
|
|
01-26-2009, 10:34 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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 10:36 AM.
|
|
|
01-26-2009, 10:40 AM
|
#6
|
Member
Registered: Jan 2009
Posts: 40
Original Poster
Rep:
|
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
|
|
|
01-26-2009, 10:46 AM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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 10:49 AM.
|
|
|
01-26-2009, 10:52 AM
|
#8
|
Member
Registered: Jan 2009
Posts: 40
Original Poster
Rep:
|
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.
|
|
|
01-26-2009, 10:58 AM
|
#9
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
|
|
01-26-2009, 11:19 AM
|
#10
|
Member
Registered: Jan 2009
Posts: 40
Original Poster
Rep:
|
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
|
|
|
01-26-2009, 11:44 AM
|
#11
|
Member
Registered: Feb 2005
Location: Metro Detroit, US
Distribution: Suse/Slackware/Mepis
Posts: 174
Rep:
|
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.
|
|
|
01-26-2009, 12:19 PM
|
#12
|
Member
Registered: Jan 2009
Posts: 40
Original Poster
Rep:
|
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
|
|
|
01-26-2009, 01:53 PM
|
#13
|
Member
Registered: Jan 2009
Posts: 40
Original Poster
Rep:
|
Actually, I found the reason. Firewall defaully set up as start. After I stop it, ftp and ssh works.
Lisa
|
|
|
01-26-2009, 03:18 PM
|
#14
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
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.
|
|
|
All times are GMT -5. The time now is 11:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|