存档

2016年8月 的存档

Ubuntu 解决ssh登录不上permission denied

2016年8月7日 没有评论

新版本的ubuntu server版本安装完成后是默认不能ssh直接登陆的。要配置密钥配合。这样其实很麻烦。

ssh不能登录上,就修改sshd的默认配置
ssh出现permission denied (publickey)问题:

修改/etc/ssh/sshd-config文件.

将其中的PermitRootLogin no修改为yes

PubkeyAuthentication yes修改为no

AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,

PasswordAuthentication no修改为yes就可以了。

有关key的文件都先#注释掉吧。重启一下应该可以连了。建议这些都使用SSH Secure Shell 或者 SecureCRT。
如果要用putty,建议使用版本0.63以上。

分类: Linux, 解决方案 标签: ,

出现Visual Studio Just-In-Time Debugger的解决方法

2016年8月1日 没有评论

经常弹出“Visual Studio Just-In-Time Debugger” 对话框,内容是:“An unhanled win32 exception occurred in explorer.exe[2548]. just-in-time debuenabled. in visual studio,just-in-debugging can be enabled from tools/options/debugging/just-in-time.‘check the documentation index for ‘just-in-timedebugging,errors’for more information无论你选哪一项或直接关闭都会导致程序关闭。
  遇到这种问题首先肯定是上网搜索各种解决方法,但好像只有一种方法,点选[开始]>[执行],在“开启”对话框中键入以下指令:
  drwtsn32 -i
  点选[确定],这个指令将会把Dr.Watson设定成预设的Debugger工具,这样就不会让您每次都会跳出这样的错误讯息了。
  装完之后这个问题就没有再出现,不过网上也有人找不到drwtsn32这个程序。
  这里提高一下某位高手的解决方法,虽然没有试过,但是可以试试!!
  解决方法在CSDN博客中:http://blog.csdn.net/bright60/archive/2006/08/24/1111592.aspx
  出现这种情况,往往是因为原先安装有VS,后来因某些原因(比如:卸载)导致VS无法使用!!
  当系统中的有些软件出现错误时,会自动调用vs进行调试,但因为VS无法使用,就出现了visual studio just-in-time debugger窗口。
  此方法主要就是删除指定的注册表

32位系统处理方法:use the registry editor to delete the following registry keys:
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

  64位系统处理方法:On a 64-bit operating system also delete the following registry keys:
  HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
  HKEY_LOCAL_MACHINE\SOFT

  用vbs写:
  Set WshShell=CreateObject(“Wscript.Shell”)
  WshSHell.RegDelete “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger”WshSHell.RegDelete “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger”msgbox “sucsess”