2001/04/12 Lab 5 ####################################################### # Email Subject to white6@llnl.gov # subject: "Ohlone: Paper for Qmail" # word, txt, or pdf # paper copy turned in at class # The web version will be on the webserver on our solaris web server. # # # Installed on your machine in the Classroom # 2 pages, # 2 links, # 2 images # # 1000 to 1500 words. # # The final, you must you will # ######################################################## # TONIGHT: # by 8:00, we need to have our users # take passwds out of /etc/passwd and /etc/shadow # transfer the files to gregs server in the /dropbox #------------------------------------------------------- # SSH setup... # 1.2.27 TONIGHT # # any protocol can be piped through ssh # http://www.lexa.ru/sos # fsecure an SSH Communications have an ssh server for NT # # Unix Client and Servers # Freeware: OpenSSH http://www.openssh.org # non-commercial: ftp://ftp.ssh.com/pub/ssh/ # commercial: F-secure ssh http://www.f-secure.com # # ssh1 - lots of free clients, not so secure # ssh2 - ########################################################### # take passwds out of /etc/passwd and /etc/shadow # transfer the files to gregs server in the /dropbox egrep "john|grep" /etc/passwd > passwd_212 egrep "john|grep" /etc/shadow > shadow_212 ftp 10.4.1.230 login: ftp passwd: bla@bla prompt off mput passwd* mput shadow* ########################################################### # get ssh ftp 10.4.1.230 login: ftp passwd: bla@bla prompt off mget ssh* whereis gzip PATH=$PATH:/usr/local/bin gzip -d ssh-1.2.27.tar.gz tar -cvpf ssh-1.2.27.tar cd ssh-1.2.27 ./configure PATH=$PATH:/usr/ccs/bin make make install cd /etc/rc3.d/ vi S51sshd #!/bin/sh # edit the thing to start sshd /usr/local/sbin/sshd chmod 700 S51sshd ssh-keygen Enter file with to save the key: /.ssh/identity passwd is the same as our root passwd retype the passwd su - john ssh-keygen cat /home/john/.ssh/identity.pub > ~root/.ssh/authorized_keys su john