Linux 10个最酷的单行命令
以 root 帐户执行上一条命令。
利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。
在 Vim 中无需权限保存编辑的文件。
以 root 帐户执行上一条命令。
利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。
在 Vim 中无需权限保存编辑的文件。
打包好web应用时,有时候上传也是比较烦琐,ant需要jsch.jar,可以到SourceForge:jsch,把它放到ant能找到地方,可以放到ANT_HOME/lib下。
然后写target:
延伸:
•使用时报 com.jcraft.jsch.JSchException: reject HostKey: 192.168.0.123。是没有加 trust=”true”,把它加上就好了。
•在 eclipse 中加 ant 额外的lib:首选项->Ant->Runtime->ClassPath->Global Entries,添加额外的jar
If you use ssh as remote login service, use following command to find out all failed login attempts via ssh or telnet (don’t use telnet):
Use grep command to find out authentication failure message from /var/log/messages file
Use awk and cut command to print IPs/hostname
Use sort command to sort them
Use uniq command to print total failed login attempts
继续阅读 »
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:
N次了,这个问题,这次一定要让自己记住,debian无愧于它的名字,普通方法是搞不定滴。
昨天更新gtk,搞坏了桌面,无奈用fvwm代替。今天启动发现竟然又自己启动到图形模式了,可是登录后桌面依然无法显示。 继续阅读 »
In 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. 继续阅读 »
用ssh连线到Debian主机时,在某些情况下,会觉得login的速度很慢.那种慢法是,在你输入了user name之后,
往往要等个半分钟,主机才会询问你密码. 继续阅读 »