`
Magicloud
  • 浏览: 8423 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
社区版块
存档分类
最新评论

Using one time password with ssh.

阅读更多
With my host being public to internet, security now is the most concerning than it ever was.
So, first step, using one time password when login with ssh.

$ sudo apt-get install libpam-otpw

--- /etc/ssh/sshd_config ---
UsePrivilegeSeparation no
ChallengeResponseAuthentication yes
--- /etc/pam.d/sshd ---
#@include common-auth
auth required pam_otpw.so
session optional pam_otpw.so

~ $ optw-gen # Save the output!
$ sudo /etc/init.d/ssh restart

And here is some other tips:
http://www.ibm.com/developerworks/cn/aix/library/au-sshlocks/index.html?ca=drs-
分享到:
评论

相关推荐

    UE(官方下载)

    Using the SSH/telnet console A tutorial for UltraEdit/UEStudio's SSH/telent feature Adding a wordfile Adding a wordfile in UltraEdit v15.00 and greater Adding a wordfile (in v14.20 and earlier) Add a ...

    pyloris-3.2-win32

    Using HTTPLoris is simple. In its most basic form, HTTPLoris merely needs a copy of Python 2.6. ...Optionally, one may set a username and password for the SOCKS proxy using these two flags.

    BSD HACKS -- 100个业界最尖端的技巧和工具

    Use One Time Passwords Section 34. Restrict Logins Chapter 4. Backing Up Introduction Section 35. Back Up FreeBSD with SMBFS Section 36. Create Portable POSIX Archives Section...

    计算机网络第六版答案

    but the time when loss first occurs will be different from one experiment to the next due to the randomness in the emission process. 22. Five generic tasks are error control, flow control, ...

    a project model for the FreeBSD Project.7z

    Committers fall into three groups: committers who are only concerned with one area of the project (for instance file systems), committers who are involved only with one sub-project and committers who ...

    hydra 7.2 win32

    only to choose password with a minimum length of 6, containing a least one letter and one number, etc. use the tool pw-inspector which comes along with the hydra package to reduce the password list...

Global site tag (gtag.js) - Google Analytics