/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#ssh-keygen -N-f .ssh/id_rsa.pub
Too many arguments. Usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. -B Show bubblebabble digest of key file. -b bits Number of bits in the key to create. -C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#ssh-keygen -N -f .ssh/id_rsa.pub
Too many arguments. Usage: ssh-keygen [options] Options: -a trials Number of trials for screening DH-GEX moduli. -B Show bubblebabble digest of key file. -b bits Number of bits in the key to create. -C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. ... -p Change passphrase of private key file. -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. |
#ssh-keygen -N -f .ssh/id_rsa.pub
-C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. ... -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -f .ssh/id_rsa.pub -p
Enter old passphrase: Bad passphrase. |
#ssh-keygen -f .ssh/id_rsa.pub -P
-C comment Provide new comment. -c Change comment in private and public key files. -e Convert OpenSSH to IETF SECSH key file. -F hostname Find hostname in known hosts file. -f filename Filename of the key file. -G file Generate candidates for DH-GEX moduli. -g Use generic DNS resource record format. -H Hash names in known_hosts file. -i Convert IETF SECSH to OpenSSH key file. -l Show fingerprint of key file. ... -q Quiet. -R hostname Remove host from known_hosts file. -r hostname Print DNS resource record. -S start Start point (hex) for generating DH-GEX moduli. -T file Screen candidates for DH-GEX moduli. -t type Specify type of key to create. -v Verbose. -W gen Generator to use for generating DH-GEX moduli. -y Read private key file and print public key. [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -f .ssh/id_rsa.pub -P rootpass
user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwA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cmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Generating public/private rsa key pair. .ssh/id_rsa.pub already exists. Overwrite (y/n)? y Your identification has been saved in .ssh/id_rsa.pub. Your public key has been saved in .ssh/id_rsa.pub.pub. The key fingerprint is: ef:06:c5:23:6f:c8:c9:c3:99:7b:7d:ac:51:4f:37:43 root@linux1 [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -f .ssh/id_rsa.pub -p rootpass
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT----------------------------------------------------------- user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc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hjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D [root@linux1:~]# cat .ssh/known_hosts |
#ls .ssh/
authorized_keys id_dsa id_dsa.pub id_rsa id_rsa.pub id_rsa.pub.pub known_hosts known_hosts.old |
#ssh-keygen -f .ssh/id_rsa.pub -p
root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN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wAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Enter old passphrase: Key has comment '.ssh/id_rsa.pub' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase. [root@linux1:~]# cat .ssh/known_hosts |
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT----------------------------------------------------------- user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZT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JilQl8D4Mf8wfu8N75S1nh1t24v6JD81mxYeG1p/78DhHFJGyl3YCgSjkBSNbzhjS2EaX7lOmYCpGGhh4HmcVk5A |1|rx968rG6BaRMVwrltMZme1zaz0E=|Uq++cSnjKKPDJBgXDRi3ynXUGDU= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4lN8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D [root@linux1:~]# cat .ssh/known_hosts |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AAAAB3NzaC1yc2EAAAABIwA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Ibv9aW31KFqwS7D Last login: Thu May 31 15:15:48 2007 Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# cat .ssh/known_hosts |
#ssh-keygen -R 192.168.16.1
/root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old |
#exit
user :0 - 09:27 ?xdm? 38:25m 1.20s x-session-manager user pts/3 :0.0 09:40 1:09m 0.25s 0.24s script -f -q /home/user/.lilalo//1793719166289054487-118059362 root pts/10 net.nt 11:43 3:09 0.22s 0.07s script -f -q /root/.lilalo//197061024767539103-1180601008.scri root pts/22 net.nt 13:39 21.00s 0.18s 0.05s script -f -q /root/.lilalo//13027106061357414589-1180607967.sc root pts/13 linux2.net.nt 13:42 11:32m 0.08s 0.03s script -f -q /root/.lilalo//21166266812737827392-1180608127.sc root pts/0 :pts/23:S.0 14:57 1.00s 0.02s 0.01s script -f -q /root/.lilalo//18465298192964120129-1180612621.sc user pts/2 :0.0 14:57 1.00s 0.27s 0.26s script -f -q /home/user/.lilalo//2749326346844122774-118061262 root pts/6 linux4.net.nt 14:57 11:22m 0.02s 0.02s script -f -q /root/.lilalo//1968358151988330022-1180612632.scr [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2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8id/+Bd0TnL/m9hxuIRoFXRNueYCind3GIO9OwKpp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D Connection to 192.168.16.2 closed. [root@linux1:~]# cat .ssh/known_hosts |
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
|
#ssh 192.168.16.2
Last login: Thu May 31 15:16:43 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid |
#vim .ssh/authorized_keys
|
#ssh-keygen -R 192.168.16.1
|
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.2's password: |
#exit
Connection to 192.168.16.2 closed. |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTu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pp2RqJbxHQwmONRDf1taLjIhNkAjRghfstZBBngVhi3N/bkDuyR9m93R2/qSTPgFWcYtgN0KEcmpJ5Txa7YqK4NcicTBbl3GU1rLjgpn7VHQ2FdNN3s0EYayiGs6j9UdAZtasfofpPWhagLLvdMSSkmcGWWqYEWFECMF0gQePb6V2+101RV/7lwApnQgzy3oj6llyx9iuG0gmpZOfTAE6+03YynwYXZM4+3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D root@192.168.16.2's password: Last login: Thu May 31 15:17:12 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# cat .ssh/known_hosts |
#exit
Connection to 192.168.16.2 closed. |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# ssh-keygen -R IP [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# |1|NYcDD6IBokzLlZTC0p89iMib73w=|n2OjOLEPrm4hKg+jvvY4paN/G1s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA14kGxTpUCEp7aOMtvkIMqRAT1u8HHpDguIdbnGHNcmR1jIddljvbyfap527tOjq13EBrS8W6vfmn3YFT5W5iCjs2XM5a5VAy/IlxNuN0u7bdVAtt2hYj7gTJvAh3qkMfTjIS4wBPlniufwN0MgRGRTuqyF3PcKAcQB39SN+RNZHbMCe2ZR1+ICTKiTYZEJxYjVjmiNKMxhMgEVOMfHAC3WanuwAKNX+wfpvugyU26zkj54cdOFitY2A5/NvWbkScSC4gMMXEOnmOET6y9JrUMxwE1BCl206TK2owi3qroI0OEY/ |1|ayRtnu+M7y4nPGM5ui+3uv6/xvc=|7LelfGsm5EfYL3UDESY1LbxYi4I= ssh-rsa AA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3Q+D0mTEl6L8yz3V62S7Ibv9aW31KFqwS7D root@192.168.16.2's password: Last login: Thu May 31 15:18:12 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid [root@linux1:~]# cat .ssh/known_hosts |
#vim .ssh/authorized_keys
|
#exit
Connection to 192.168.16.2 closed. |
#ssh-keygen -f .ssh/id_rsa.pub -p
|
#pkill -9 screen
|
#screen -x
|
#pkill -9 11018 15909 9998
Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill -9 11018
|
#pkill -9
|
#pkill -9
|
#screen -x
|
#screen
|
#\rm
rm: пропущен операнд Попробуйте `rm --help' для получения более подробного описания. |
#ls
! install q wall |
#ls .ssh/
authorized_keys id_dsa id_dsa.pub id_rsa id_rsa.pub id_rsa.pub.pub known_hosts known_hosts.old |
#rm .ssh/id_
id_dsa id_dsa.pub id_rsa id_rsa.pub id_rsa.pub.pub |
#rm .ssh/id_*
|
#ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: a1:b0:c5:02:2e:2a:ca:96:95:63:62:ac:c5:22:d0:79 root@linux1 |
#cat .ssh/id_rsa.pub | ssh 192.168.16.2 'cat >> ~/.ssh/authorized_keys'
root@192.168.16.2's password: |
#ssh 192.168.16.2
Enter passphrase for key '/root/.ssh/id_rsa': Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:18:27 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid |
#ssh-agent --help
SSH_AUTH_SOCK=/tmp/ssh-tqSFt21426/agent.21426; export SSH_AUTH_SOCK; SSH_AGENT_PID=21427; export SSH_AGENT_PID; echo Agent pid 21427; |
#exit
Connection to 192.168.16.2 closed. |
#ssh-agent -h
ssh-agent: illegal option -- h Usage: ssh-agent [options] [command [args ...]] Options: -c Generate C-shell commands on stdout. -s Generate Bourne shell commands on stdout. -k Kill the current agent. -d Debug mode. -a socket Bind agent socket to given name. -t life Default identity lifetime (seconds). |
#eval $(ssh-agent)
Agent pid 21454 |
#echo $SSH_
$SSH_AGENT_PID $SSH_AUTH_SOCK $SSH_CLIENT $SSH_CONNECTION $SSH_TTY |
#echo $SSH_
|
#ssh
ssh ssh-add ssh-agent ssh-argv0 ssh-copy-id sshd ssh-keygen ssh-keyscan |
#ssh-a
ssh-add ssh-agent ssh-argv0 |
#ssh-add -h
ssh-add: illegal option -- h Usage: ssh-add [options] Options: -l List fingerprints of all identities. -L List public key parameters of all identities. -d Delete identity. -D Delete all identities. -x Lock agent. -X Unlock agent. -t life Set lifetime (in seconds) when adding identities. -c Require confirmation to sign using identities |
#ssh-add -l
The agent has no identities. |
#ssh-add .ssh/id_rsa.pub
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '.ssh/id_rsa.pub' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: .ssh/id_rsa.pub Enter passphrase for .ssh/id_rsa.pub: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ ... bad permissions: ignore key: .ssh/id_rsa.pub Bad passphrase, try again for .ssh/id_rsa.pub: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '.ssh/id_rsa.pub' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: .ssh/id_rsa.pub Bad passphrase, try again for .ssh/id_rsa.pub: |
#ssh-add .ssh/id_rsa
Enter passphrase for .ssh/id_rsa: Identity added: .ssh/id_rsa (.ssh/id_rsa) |
#ssh-agent -l
ssh-agent: illegal option -- l Usage: ssh-agent [options] [command [args ...]] Options: -c Generate C-shell commands on stdout. -s Generate Bourne shell commands on stdout. -k Kill the current agent. -d Debug mode. -a socket Bind agent socket to given name. -t life Default identity lifetime (seconds). |
#ssh-add -l
2048 a1:b0:c5:02:2e:2a:ca:96:95:63:62:ac:c5:22:d0:79 .ssh/id_rsa (RSA) |
#ssh 192.168.16.2
Last login: Thu May 31 15:20:59 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid |
#exit
Connection to 192.168.16.2 closed. |
#ssh-agent -k
unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 21454 killed; |
#ssh 192.168.16.2
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Thu May 31 15:24:40 2007 from linux1.net.nt Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2654; pidfile=/root/.lilalo/l3-agent.pid |
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#netstat -lnp | grep :6000
|
#exit
Connection to 192.168.16.2 closed. |
#netstat -lnp | grep :6000
tcp 0 0 0.0.0.0:60000 0.0.0.0:* LISTEN 2780/xinetd |
#vim /usr/share/gdm/
|
#vim /usr/share/gdm/defaults.conf
|
#vim /etc/gdm/
|
#vim /etc/gdm/gdm.conf
|
#vim /usr/share/gdm/defaults.conf
|
#vim /etc/gdm/gdm.conf
44a45 > DisallowTCP=false |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#netstat -lnp | grep :6000
tcp 0 0 0.0.0.0:60000 0.0.0.0:* LISTEN 2780/xinetd tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 21851/X tcp6 0 0 :::6000 :::* LISTEN 21851/X |
#netstat -lnp | grep :6000
tcp 0 0 0.0.0.0:60000 0.0.0.0:* LISTEN 2780/xinetd tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 21851/X tcp6 0 0 :::6000 :::* LISTEN 21851/X |
#su - user
|
$exit
|
#ssh 192.168.16.3
root@192.168.16.3's password: Last login: Thu May 31 15:08:31 2007 from linux4.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
##DISPLAY=192.168.16.1:0 xcl
|
#xcl
xclipboard xclock |
#xcl
xclipboard xclock |
#xcl
xclipboard xclock |
#DISPLAY=192.168.16.1:0 xclock
Xlib: connection to "192.168.16.1:0.0" refused by server Xlib: No protocol specified Error: Can't open display: 192.168.16.1:0 |
#exit
Connection to 192.168.16.3 closed. |
#su - user
l3-agent is already running: pid=22190; pidfile=/home/user/.lilalo/l3-agent.pid |
Время первой команды журнала | 15:14:12 2007- 5-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:30:22 2007- 5-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 40.59 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 6.25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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