ubuntu,debian,redhat,fedora,centos
标签类目:SSH

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. 继续阅读 »

返回顶部