AIX scp Failed to open devpkcs11

eymit發表於2012-02-03
Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4  

作業系統版本:AIX 6.1

 

背景

新裝的(完全安裝)AIX 6.1系統需要從其它伺服器拷貝檔案至本機,但是SCP拷貝時報錯

 

問題描述

AIX進行scp的時候報下面錯誤

 

bash-3.00# scp -rp root@172.17.1.207:/etc/hosts   /etc/    

***********************************

Error stack trace (1 frames):

((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory

]

***********************************

***********************************

Error stack trace (1 frames):

((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory

]

***********************************

root@172.17.1.207's password:

hosts                                                                                      100% 2100     2.1KB/s   00:00   

 

 

解決過程

1網上查了,也看到類以的案例,主要因為安裝了pkcs包的原因

檢視是不是裝了pkcs

 

bash-3.00# lslpp -l | grep pkcs

  security.pkcs11            6.1.6.1  COMMITTED  PKCS11 Device Driver

  security.pkcs11.tools      6.1.6.0  COMMITTED  PKCS11 Key Management Tool

  security.pkcs11            6.1.6.1  COMMITTED  PKCS11 Device Driver

 

2.使用smit removesecurity.pkcs11 security.pkcs11.tools 後,問題解決

 

                                                  Remove Installed Software

 

Type or select values in entry fields.

Press Enter AFTER making all desired changes.                [Entry Fields]                            

* SOFTWARE name                                      [security.pkcs11 security.pkcs11.tools]           +

  PREVIEW only? (remove operation will NOT occur)     no                                             +

  REMOVE dependent software?                          no                                           +

  EXTEND file systems if space needed?                yes                                              +

  DETAILED output?                                    no                                          +

 

 WPAR Management             Perform. Operation in Global Environment         yes                      +

      Perform. Operation on Detached WPARs             no                                             +

          Detached WPAR Names                        [_all_wpars]                                   +

                       

                  

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21605631/viewspace-715565/,如需轉載,請註明出處,否則將追究法律責任。

相關文章