07-20-2006
Hi,
As in the previous reply, we should not use FTP and TELNET as they are not that much secure rather you can use SSH that will allow you to log in to the machine and will also let you have the functionality of FTP with the implementation of SFTP which is already there into it.
Regarding that, you can try and use the steps given below ---
1) You can have TCP Wrappers for which you need to edit the /etc/hosts.allow file and append the IPs to which you want to give access. The format should be ---
<service> : <IP Address> : <allow/deny>
2) First make sure that the service SSH is running or not by using the command ---
# service sshd status
and if it is running then stop it.
3) Edit the file /etc/ssh/sshd_config
Change the parameters given below --
Port 22
Protocol 2,1
ListenAddress <IP Address>:22
PermitRootLogin yes
[This line controls the access to login to the machine as root. If you set "no" over here, then the root user will not be able to log in to the machine using SSH.]
NOTE : If you want to allow selected groups or users only, then under Authentication clause you should have the following and remember the groupnames or usernames should be separated by just a white space ---
AllowGroups <groupname....(s)>
e.g. AllowGroups sysadm wheel
AllowUsers localadmin sysadm
e.g. AllowUsers <username....(s)>
4) After editing the file, start the service by using the command --
# service sshd start
Now you should be able to use the SSH for both the purpose. Regarding sftp, you can get enough help from the man page itself.
If you need further help, do let me know.....
Cheers...
ATUL
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to ftp to my linux box from windows and from unix and its not working. I can telnet just fine, but ftp doesn't work. Where should I start looking? What config file is it that controls the ftp? Why does telnet work and ftp not? I'm using redhat 6.1, samba's working for browsing the... (33 Replies)
Discussion started by: kymberm
33 Replies
2. Linux
How do i setup my linux server to act as a internal ftp server. i have 30 machines who would want to log onto external ftp servers ( for hosting and stuff ). They would have to go through a ftp server on the network server to get outside to the internet?
What program on linux would i use
How... (6 Replies)
Discussion started by: perleo
6 Replies
3. Linux
is it possible to have an common login account for both linux and Solaris?
Having problem in logging into linux, unable to load completely.
home directory residue in Solaris 8, export out. No NIS running, only NFS in place. (6 Replies)
Discussion started by: jennifer
6 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I need to stop all the services for telnet & FTP as we want our
server to be more secure.
Please give me some steps for jumping to SSH protocol.
How can i disable telnet & ftp service on my server. (1 Reply)
Discussion started by: pradeep_desh
1 Replies
5. Linux
Hi,
anybody show me how to configure linux AS4 as a router. my linux server has 2 NICs, one connects to DSL modem (10.0.0.0/24) , and other one connects to private LAN (192.168.1.0/24).
TIA
Bong (2 Replies)
Discussion started by: bong02
2 Replies
6. UNIX for Dummies Questions & Answers
I am an administrator of a Red Hat Enterprise Linux system.
Now one account expired. I wonder how to reactivate the account.
Thanks (2 Replies)
Discussion started by: cy163
2 Replies
7. AIX
Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in.
I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies
8. UNIX for Advanced & Expert Users
Hello All,
I hope somebody can help me
I used to work to client using solaris 2.5.1 using telnet to explore disk and ftp to archive data.
There is one tester which I can connect using root password using putty but always keep rejecting me when i'm using root password using FTP.
Are the... (7 Replies)
Discussion started by: sawrio
7 Replies
9. Red Hat
How can I use the command "startx" by other user account such as "oracle" ??
I cannot startx by user account oracle ??
How to fix it ???
Any adivce ???
I use red hat linux kernel 2.6
$ startx
Fatal server error:
PAM authentication failed, cannot start X server.
Perhaps you do... (0 Replies)
Discussion started by: chuikingman
0 Replies
10. Red Hat
I am being pushed from AIX onto RHEL 6 and after our first 'chuck it on' install, I have a problem. Where is the old (okay insecure) telnet & ftp server? I know that they are probably regarded as archaic now, but the source servers do not have the SSH tools, so I've got to somehow transfer the... (4 Replies)
Discussion started by: rbatte1
4 Replies
LEARN ABOUT CENTOS
grub-render-label
GRUB-RENDER-LABEL(1) User Commands GRUB-RENDER-LABEL(1)
NAME
grub-render-label - generate a .disk_label for Apple Macs.
SYNOPSIS
grub-render-label [OPTION...] [OPTIONS]
DESCRIPTION
Render Apple .disk_label.
-b, --bgcolor=COLOR
use COLOR for background
-c, --color=COLOR
use COLOR for text
-f, --font=FILE
use FILE as font (PF2).
-i, --input=FILE
read text from FILE.
-o, --output=FILE
set output filename. Default is STDOUT
-t, --text=STRING
set the label to render
-v, --verbose
print verbose messages.
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO
The full documentation for grub-render-label is maintained as a Texinfo manual. If the info and grub-render-label programs are properly
installed at your site, the command
info grub-render-label
should give you access to the complete manual.
grub-render-label (GRUB) 2.02-2ubuntu8.3 July 2018 GRUB-RENDER-LABEL(1)