标签类目:SSH

Linux 10个最酷的单行命令

分类:RedHat

sudo !!

以 root 帐户执行上一条命令。

python -m SimpleHTTPServer

利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。

:w !sudo tee %

在 Vim 中无需权限保存编辑的文件。

继续阅读 »

ant应用举例—远程部署web应用

分类:Java/jsp打包好web应用时,有时候上传也是比较烦琐,ant需要jsch.jar,可以到SourceForge:jsch,把它放到ant能找到地方,可以放到ANT_HOME/lib下。

然后写target:

  1. <target name="copy.to.remote" depends="war">
  2.     <scp file="${build.dir}/${project.name}.war" todir="${scp.username}:${scp.passwd}@${scp.host}:${scp.path}" port="22" trust="true" verbose="true"></scp>
  3. </target>

延伸:

•使用时报 com.jcraft.jsch.JSchException: reject HostKey: 192.168.0.123。是没有加 trust=”true”,把它加上就好了。
•在 eclipse 中加 ant 额外的lib:首选项->Ant->Runtime->ClassPath->Global Entries,添加额外的jar

Secure your SSH deployment with WiKID two-factor authentication

SSH offers a highly secure channel for remote administration of servers. However, if you face an audit for regulatory or business requirements, such as Visa/Mastercard PCI, you need to be aware of some potential authentication related short-comings that may cause headaches in an audit. For example:

  • There is no way to control which users have public key authorization
  • There is no way to enforce passphrase complexity (or even be sure that one is being used)
  • There is no way to expire a public key 继续阅读 »

让debian启动到文本模式

分类:Debian N次了,这个问题,这次一定要让自己记住,debian无愧于它的名字,普通方法是搞不定滴。

  昨天更新gtk,搞坏了桌面,无奈用fvwm代替。今天启动发现竟然又自己启动到图形模式了,可是登录后桌面依然无法显示。 继续阅读 »

Howto perform UDP tunneling through SSH connection

分类:DebianIn this tutorial we will are going to provide simple procedure how to to perform UDP tunneling through an SSH connection.Say you need to forward UDP packets between two remote networks securely.

E.g : dns queries from your home machine to your dns servers at work. 继续阅读 »

Debian的ssh登入过慢的解决

分类:Debian用ssh连线到Debian主机时,在某些情况下,会觉得login的速度很慢.那种慢法是,在你输入了user name之后,

login as: user (30秒过去...)
user@Debian.server's password: ******

往往要等个半分钟,主机才会询问你密码. 继续阅读 »


返回顶部