03142014 Flashcards
OpenSSH SSH daemon
sshd
Authentication key generation, management and conversion
ssh-keygen
simulate apache server via peer to peer
To configure sshd, to change how root logins work, see the _____ file
sshd_config
LOGGING INTO ANOTHER MACHINE- TELNET AND SECURE SHELL
telnet hostname
ssh username@hostname
telnet 192.168.1.115
pwd
exit
ssh jklewis@192.168.1.115
pwd
uptime
exit
Message of the day
/etc/motd
you can change to another directory, edit files, and pretty much whatever you would normally do if you were actually on the system
Allows you to download files from the
URLs.
wget
cd /tmp
wget www.jklewis.com
more index.html
wget www.jklewis.com/shipfire.gif
man wget
BROWSING THE WEB- FIREFOX
firefox &
RUNNING YOUR OWN WEBSERVER- HTTPD
yum install httpd cd /etc/httpd/conf cp httpd.conf /tmp/httpd.conf.orig vi httpd.confc cd /etc/httpd systemctl start httpd.service systemctl enable httpd.service cd /var/www/html dmesg > dmesg1.txt echo "This is a new file" > newfile.txt 192.168.1.15:/newfile.txt
read the first page very closely where it talks about ServerRoot
# if a filename begins with a slash,the server will use that path as indicated. If a relative path is used, the value of ServerRoot is prepended e.g. Include conf.modules.d/*.conf
the directory will be really:
/etc/httpd/conf.modules.d
Be sure to remember how ServerRoots works!
httpd.conf file
The Listen directive tells httpd which port to use.
Scroll down to ServerName. This is where you can enter the name of your particular server.
DocumentRoot. This is the directory where your web pages will be served. It should be set to /var/www/html