1. 检查~/.ssh目录的权限是否为700
2. 检查~/.ssh/authorized_keys文件的权限是否为600
3. 检查~/.ssh/authorized_keys文件中的公钥是否正确
4. 检查/etc/ssh/sshd_config 中的 AuthorizedKeysFile .ssh/authorized_keys 文件名是否正确
5. 检查/root目录的权限 root目录权限为550
mac hping3报Sorry, this hping binary was compiled without TCL scripting support
hping3
Sorry, this hping binary was compiled without TCL scripting support
解决:
brew uninstall hping
brew install tcl-tk
brew install libpcap
echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/tcl-t...
mac Read-only file system
遇到
cp -f hping3 /usr/sbin/
cp: /usr/sbin/hping3: Read-only file system
make: *** [install] Error 1
sudo mount -uw /
excel for mac 中如何 替换多余的回车或换行符
mac os 修改 mac地址
当某个环境下,只能指定网卡上网时,这个方法你就爽歪歪了
networksetup -listallhardwareports 查看当前所有端口Mac地址
sudo ifconfig en1 ether e4:ce:8f:32:51:82 修改
en1是WiFi标记 e4:ce:8f:32:51:82 是目标Mac地址
ifconfig en1 | grep ether 查看是否修改成功
电脑重启mac地址复原
如果usb网卡遇到改不了情况,需要安装驱动,我的驱动是RTL8153 RTUNICv1.0.21_Update3.zip
mac sshd重启
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
kali 优化
1.设置 root密码
passed root
2.开启sshd 允许root登陆
vim /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
ClientAliveInterval 6000 #防止长时间操作 ssh断开连接
/etc/init.d/ssh restart #ssh重启
update-rc.d ssh enable #开机自启
3.设置proxychains代理
vim /etc/proxychains.c...
mac 无法启动虚拟机 ,"请使用配置编辑器设置有效的工作目录,然后重试。"
启动后提示: 请使用配置编辑器设置有效的工作目录,然后重试。
解决办法
1. vim Windows 7 x64.vmx
找到:workingDir =
由于这虚拟机文件是从Windows系统拷贝过来的,目录为乱码。
删除即可。
注:workingDir = " xxxxxxx" 整行删除
aws服务器太慢 ---国内中专
安装步骤
Centos 系统:
yum install -y socat
Debian/Ubuntu 系统:
apt-get update apt-get install -y socat
---------------------
使用方法
转发TCP
nohup socat TCP4-LISTEN:2333,reuseaddr,fork TCP4:233.233.233.233:6666 >> /root/socat.log 2>&1 &
nohup
指的是 后台运行。
TCP4-LI...
aws 服务器 ssh使用密码登陆
我的是RHEL 5
1. sudo su
2.passwd ec2-user
输入两遍密码
3.vim /etc/ssh/sshd_config
修改前PasswordAuthentication no
修改后PasswordAuthentication yes
4.重启ssh服务
service sshd restart