/l3/users/10-09-2007/nt-bsdnet/fbsd3.unix.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#ssh root@192.168.15.242 pw useradd newuser
Password: pw: login name `newuser' already exists |
#ssh root@192.168.15.242 pw useradd newuser1
Password: |
#ssh root@192.168.15.242 pw useradd newuser1
Password: |
#ssh root@192.168.15.242 pw useradd newuser1
Password: |
#less /etc/passwd |grep new
news:*:8:8:News Subsystem:/:/usr/sbin/nologin newuser:*:1003:1003:User &:/home/newuser:/bin/sh newuser1:*:1004:1004:User &:/home/newuser1:/bin/sh |
#less /etc/passwd |grep new
news:*:8:8:News Subsystem:/:/usr/sbin/nologin newuser:*:1003:1003:User &:/home/newuser:/bin/sh newuser1:*:1004:1004:User &:/home/newuser1:/bin/sh |
#less /etc/passwd |grep new
news:*:8:8:News Subsystem:/:/usr/sbin/nologin newuser:*:1003:1003:User &:/home/newuser:/bin/sh newuser1:*:1004:1004:User &:/home/newuser1:/bin/sh |
#ssh root@192.168.15.242 passwd newuser1
Password: Changing local password for newuser1 passwd: pam_chauthtok(): conversation failure |
#ssh root@192.168.15.242 passwd newuser1
Password: Changing local password for newuser1 passwd: pam_chauthtok(): conversation failure |
#ll
total 18 -rw-r--r-- 1 root wheel 800 Sep 11 16:33 authorized_keys -rw------- 1 root wheel 744 Sep 12 10:34 id_dsa -rw-r--r-- 1 root wheel 608 Sep 12 10:34 id_dsa.pub -rw------- 1 root wheel 1743 Sep 12 10:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:34 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:32 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:32 identity.pub -rw-r--r-- 1 root wheel 3618 Sep 12 10:16 known_hosts |
#ll
total 18 -rw-r--r-- 1 root wheel 800 Sep 11 16:33 authorized_keys -rw------- 1 root wheel 744 Sep 12 10:34 id_dsa -rw-r--r-- 1 root wheel 608 Sep 12 10:34 id_dsa.pub -rw------- 1 root wheel 1743 Sep 12 10:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:34 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:32 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:32 identity.pub -rw-r--r-- 1 root wheel 3618 Sep 12 10:16 known_hosts |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#mail
Mail version 8.1 6/6/93. Type ? for help. "/var/mail/root": 35 messages 35 new >N 1 root@fbsd1.unix.nt Wed Sep 12 10:08 28/1208 "Cron <root@fbsd1> ssh" N 2 root@fbsd1.unix.nt Wed Sep 12 10:09 28/1208 "Cron <root@fbsd1> ssh" N 3 root@fbsd1.unix.nt Wed Sep 12 10:10 28/1208 "Cron <root@fbsd1> ssh" N 4 root@fbsd1.unix.nt Wed Sep 12 10:11 28/1208 "Cron <root@fbsd1> ssh" N 5 root@fbsd1.unix.nt Wed Sep 12 10:12 28/1208 "Cron <root@fbsd1> ssh" N 6 root@fbsd1.unix.nt Wed Sep 12 10:13 28/1208 "Cron <root@fbsd1> ssh" N 7 root@fbsd1.unix.nt Wed Sep 12 10:14 28/1208 "Cron <root@fbsd1> ssh" N 8 root@fbsd1.unix.nt Wed Sep 12 10:15 28/1208 "Cron <root@fbsd1> ssh" ... N 13 root@fbsd1.unix.nt Wed Sep 12 10:20 28/1208 "Cron <root@fbsd1> ssh" N 14 root@fbsd1.unix.nt Wed Sep 12 10:21 28/1208 "Cron <root@fbsd1> ssh" N 15 root@fbsd1.unix.nt Wed Sep 12 10:22 28/1208 "Cron <root@fbsd1> ssh" N 16 root@fbsd1.unix.nt Wed Sep 12 10:23 28/1208 "Cron <root@fbsd1> ssh" N 17 root@fbsd1.unix.nt Wed Sep 12 10:24 28/1208 "Cron <root@fbsd1> ssh" N 18 root@fbsd1.unix.nt Wed Sep 12 10:25 28/1208 "Cron <root@fbsd1> ssh" N 19 root@fbsd1.unix.nt Wed Sep 12 10:26 28/1208 "Cron <root@fbsd1> ssh" N 20 root@fbsd1.unix.nt Wed Sep 12 10:27 28/1208 "Cron <root@fbsd1> ssh" & q Held 35 messages in /var/mail/root |
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ls -l
total 1580 -rw------- 1 root wheel 11351 Sep 12 10:24 .bash_history -rw-r--r-- 1 root wheel 19 Sep 7 23:00 .bash_profile -rw-r--r-- 1 root wheel 38 Sep 7 22:59 .bashrc -rw-r--r-- 2 root wheel 801 Jan 12 2007 .cshrc drwxr-xr-x 2 root wheel 512 Sep 7 15:10 .gstreamer-0.8 -rw------- 1 root wheel 288 Sep 7 23:03 .history -rw-r--r-- 1 root wheel 143 Jan 12 2007 .k5login -rw-r--r-- 1 root wheel 52 Sep 7 22:59 .l3rc -rw------- 1 root wheel 70 Sep 12 10:38 .lesshst ... drwx------ 2 root wheel 512 Sep 12 10:41 .ssh -rw------- 1 root wheel 11504 Sep 12 10:41 .viminfo -rw-r--r-- 1 root wheel 19 Sep 10 12:31 .vimrc -rw-r--r-- 1 root wheel 3436 Sep 11 10:52 @ drwxr-xr-x 19 root wheel 2048 Sep 12 10:31 etc-that -rw-r--r-- 1 root wheel 4329 Sep 7 22:55 install -rw------- 1 root wheel 1486848 Sep 11 15:24 kded.core -rw------- 1 root wheel 14663 Sep 11 17:03 mbox -rw-r--r-- 1 root wheel 11401 Sep 10 11:43 oui.txt -rw-r--r-- 1 root wheel 0 Sep 11 17:07 test |
#ls -l
total 1580 -rw------- 1 root wheel 11351 Sep 12 10:24 .bash_history -rw-r--r-- 1 root wheel 19 Sep 7 23:00 .bash_profile -rw-r--r-- 1 root wheel 38 Sep 7 22:59 .bashrc -rw-r--r-- 2 root wheel 801 Jan 12 2007 .cshrc drwxr-xr-x 2 root wheel 512 Sep 7 15:10 .gstreamer-0.8 -rw------- 1 root wheel 288 Sep 7 23:03 .history -rw-r--r-- 1 root wheel 143 Jan 12 2007 .k5login -rw-r--r-- 1 root wheel 52 Sep 7 22:59 .l3rc -rw------- 1 root wheel 70 Sep 12 10:38 .lesshst ... drwx------ 2 root wheel 512 Sep 12 10:41 .ssh -rw------- 1 root wheel 11504 Sep 12 10:41 .viminfo -rw-r--r-- 1 root wheel 19 Sep 10 12:31 .vimrc -rw-r--r-- 1 root wheel 3436 Sep 11 10:52 @ drwxr-xr-x 19 root wheel 2048 Sep 12 10:31 etc-that -rw-r--r-- 1 root wheel 4329 Sep 7 22:55 install -rw------- 1 root wheel 1486848 Sep 11 15:24 kded.core -rw------- 1 root wheel 14663 Sep 11 17:03 mbox -rw-r--r-- 1 root wheel 11401 Sep 10 11:43 oui.txt -rw-r--r-- 1 root wheel 0 Sep 11 17:07 test |
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ll
bash: ll: command not found |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1751 Sep 11 16:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 11 16:33 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#cd ..
You have new mail in /var/mail/root |
#cd ..
You have new mail in /var/mail/root |
#cd ..
You have new mail in /var/mail/root |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#ls
.bash_history .history .login @ oui.txt .bash_profile .k5login .profile etc-that test .bashrc .l3rc .ssh install .cshrc .lesshst .viminfo kded.core .gstreamer-0.8 .lilalo .vimrc mbox |
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#cd ./.ssh/
|
#ls -l
total 18 -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#ls -l
total 18 -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#touch authorized_keys
|
#chmod 600 authorized_keys
|
#chmod 600 authorized_keys
|
#chmod 600 authorized_keys
|
#chmod 600 authorized_keys
|
#ls -l
total 18 -rw------- 1 root wheel 0 Sep 12 10:43 authorized_keys -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old You have new mail in /var/mail/root |
#ls -l
total 18 -rw------- 1 root wheel 0 Sep 12 10:43 authorized_keys -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old You have new mail in /var/mail/root |
#ls -l
total 18 -rw------- 1 root wheel 0 Sep 12 10:43 authorized_keys -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old You have new mail in /var/mail/root |
#ls -l
total 18 -rw------- 1 root wheel 0 Sep 12 10:43 authorized_keys -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old You have new mail in /var/mail/root |
#ls -l
total 24 -rw------- 1 root wheel 645 Sep 12 10:46 authorized_keys -rw------- 1 root wheel 736 Sep 12 10:44 id_dsa -rw-r--r-- 1 root wheel 608 Sep 12 10:44 id_dsa.pub -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old You have new mail in /var/mail/root |
#less authorized_keys
|
#less authorized_keys
|
#alias ll='ls -l'
You have new mail in /var/mail/root |
#ll
|
#ll
|
#cat id_dsa.pub | ssh root@192.168.15.242 'cat >> /root/.ssh/
uthorized_keys2' Password: |
$pwd
/home/user |
$ls -l /home/user/
total 2 drwx------ 2 user wheel 512 Sep 10 10:48 Desktop |
#cat id_rsa.pub | ssh root@192.168.15.242 'cat >> /root/.ssh/
uthorized_keys2' Enter passphrase for key '/root/.ssh/id_dsa': |
$mkdir /home/user/.ssh
mkdir: /home/user/.ssh: File exists |
$mkdir /home/user/.ssh
mkdir: /home/user/.ssh: File exists |
#ll
total 18 -rw-r--r-- 1 root wheel 800 Sep 11 16:33 authorized_keys -rw------- 1 root wheel 744 Sep 12 10:34 id_dsa -rw-r--r-- 1 root wheel 608 Sep 12 10:34 id_dsa.pub -rw------- 1 root wheel 1743 Sep 12 10:34 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:34 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:32 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:32 identity.pub -rw-r--r-- 1 root wheel 3618 Sep 12 10:16 known_hosts |
$ls -a /home/user/
total 54 drwxr-xr-x 9 user wheel 1024 Sep 12 09:09 . drwxr-xr-x 5 root wheel 512 Sep 9 12:25 .. lrwxr-xr-x 1 user wheel 39 Sep 12 09:09 .DCOPserver_fbsd3.unix.nt_:0 -> /home/user/.DCOPserver_fbsd3.unix.nt__0 -rw-r--r-- 1 user wheel 60 Sep 12 09:09 .DCOPserver_fbsd3.unix.nt__0 -rw------- 1 user wheel 203 Sep 12 09:09 .ICEauthority -rw------- 1 user wheel 1338 Sep 12 10:24 .bash_history -rw-r--r-- 1 user wheel 19 Sep 7 22:58 .bash_profile -rw-r--r-- 1 user wheel 43 Sep 7 22:57 .bashrc -rw-r--r-- 1 user wheel 767 Sep 7 15:51 .cshrc ... -rw------- 1 user wheel 373 Sep 7 15:51 .mail_aliases -rw-r--r-- 1 user wheel 331 Sep 7 15:51 .mailrc drwxr-xr-x 3 user wheel 512 Sep 10 10:49 .mcop -rw-r--r-- 1 user wheel 797 Sep 7 15:51 .profile drwxr-xr-x 2 user wheel 512 Sep 12 09:09 .qt -rw------- 1 user wheel 276 Sep 7 15:51 .rhosts -rw-r--r-- 1 user wheel 975 Sep 7 15:51 .shrc drwx------ 2 user wheel 512 Sep 11 16:28 .ssh -rw-r--r-- 1 user wheel 9 Sep 10 10:47 .xinitrc drwx------ 2 user wheel 512 Sep 10 10:48 Desktop |
$ls -al /home/user/.ssh/authorized_keys
-rw-r--r-- 1 root wheel 400 Sep 11 16:28 /home/user/.ssh/authorized_keys |
#ll
total 26 -rw------- 1 root wheel 645 Sep 12 10:46 authorized_keys -rw-r--r-- 1 root wheel 1008 Sep 12 10:48 authorized_keys2 -rw------- 1 root wheel 736 Sep 12 10:44 id_dsa -rw-r--r-- 1 root wheel 608 Sep 12 10:44 id_dsa.pub -rw------- 1 root wheel 1743 Sep 12 10:42 id_rsa -rw-r--r-- 1 root wheel 400 Sep 12 10:42 id_rsa.pub -rw------- 1 root wheel 981 Sep 12 10:40 identity -rw-r--r-- 1 root wheel 645 Sep 12 10:40 identity.pub -rw------- 1 root wheel 4204 Sep 12 10:28 known_hosts -rw-r--r-- 1 root wheel 3613 Sep 11 16:02 known_hosts.old |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
#ssh root@192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Sep 12 10:27:47 2007 from host237.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
$ls -al /home/user/.ssh/authorized_keys
-rw-r--r-- 1 root wheel 400 Sep 11 16:28 /home/user/.ssh/authorized_keys |
#ssh 192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Sep 12 10:49:06 2007 from host237.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Sep 12 10:49:06 2007 from host237.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Sep 12 10:49:06 2007 from host237.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.15.242
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Sep 12 10:49:06 2007 from host237.unix.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.2-RELEASE (SMP) #0: Fri Jan 12 11:05:30 UTC 2007 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
#exit
Connection to 192.168.15.242 closed. |
#ssh -vot@192.168.15.242
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to 192.168.15.242 [192.168.15.242] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type 0 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeBSD-20061110 debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH* ... debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /root/.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 277 debug1: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> Enter passphrase for key '/root/.ssh/id_rsa': |
#ll /home/user/.ssh/
total 4 -rw-r--r-- 1 root wheel 400 Sep 11 16:28 authorized_keys -rw-r--r-- 1 user wheel 1812 Sep 11 16:46 known_hosts |
$sudo user:wheel /home/user/.ssh/authorized_keys
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: Sorry, try again. Password: Sorry, try again. Password: sudo: 2 incorrect password attempts |
Время первой команды журнала | 10:37:26 2007- 9-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:54:32 2007- 9-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 5.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008