Linux - NewbieThis 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.
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.
You shouldn't.
Firstly try not to use telnet, use SSH instead.
Either way you use, login as a normal user and then 'su' to gain root privileges.
The reason is you don't want anyone to catch you typing your root password over a network connection. Telnet is terrible because is sends everything in plain text. SSH will encrypt the data, so when you're typing in your root password using su it's harder for anyone to listen to what you're typing.
glj
The website for ir is here: www.openssh.org
You'll probably find it's already installed - depends on the distribution you're using. Give some more details on what flavour of Linux you're using (Red Hat, Mandrake etc) and someone will be able to help you. Google for information as well.
I'm afraid I'm just about to leave work so I can't help any more now. Sorry!
glj
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
redhat, hmm, that should be rather simple then to enable ssh
all you have to do is ope a console as root and tye 'setup' at the root prompt then from that menu select 'system services'
from there you want to find the entry 'sshd' and make sure it's checked (with the space bar)
then hit the ok button then the quit button, sshd should now be running , and it will aslo automatically be enabled on reboot as well
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
another bonus of ssh is it can be set to provide X forwarding so if you have another linux box running X or an X server for win/mac, then you can run alot of your X progs via ssh as well
As everybody else has been telling you, try not use telnet and especially as root. If you want to know if ssh is running type:
pgrep sshd
If you get a set of process numbers displayed anything like 1743 then it must be up and running. Then, if you had an account on the remote box called mickeymouse then you will type
ssh -l mickeymouse hostname
If it is your first login you will then be asked to type yes/no if you want to verify login. After typing yes you will be asked for the password.
By now you should be logged on.
The -l is a letter L and not a number 1
An alternative check for sshd is to type while not as root
/sbin/chkconfig --list
Look in the list and you should see something like
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Last note is that the --list is 2 dashes not 1 dash.
Yeah, that's alright, that number is just the process id, anyway..I just wanted to say that, if your trying to access the ssh daemon from a windows box, the client to use would be putty..I noticed nobody put that...you could probably used google to find that out though, heh
Another thing to do since you're now on your way to becoming security mindful, is to run ntsysv and uncheck services/daemons you don't need. This will heighten security as well as free up more system resources.
Red Hat turns on a lot of uneeded stuff by default, so you'll probably want to tighten things down a bit.
Leave ssh running for remote access. I would make sure you have the most recent version however.
You can find out which version you're running by issuing ssh -V (note the capital 'V') from a command prompt/line.
You can either compile a newer version or grab the latest rpm from www.redhat.com.
Sorry for not getting back to you sooner - too busy at work.
Indeed as Zer0python and Deoren have mentioned the number returned from pgrep is a process id which shows it is running. So from a terminal window you can type
ssh -l mmouse host
In case you want to ssh from a windows box the url for PuTTY is below.
I am an absolute newbie re Linux and my box has lost contact via keyboard (I think that the screensaver has locked up). Thanks for the discussion and tip/url re putty - I am now at least able to communicate with the box. Now to fix the problem without shutting down the phones...
Glad the url/tip helped regarding PuTTY. Not sure I can help you with the keyboard problem. Try posting a new thread in the Forum to 'bump' your question to the top.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.