AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-723632

alper's questions

Martin Hope
alper
Asked: 2024-03-17 20:01:58 +0800 CST

如何在 Windows 10 中恢复 Caps Lock 键映射

  • 9

我已在 Windows 10 中应用了以下答案图(Caps Lockhttps://superuser.com/a/997448/723632 )。现在如果可能的话,我想恢复它:Ctrl

如果有人需要通过以下方式完成此操作PowerShell:

$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';    
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);

以管理员身份运行并重新启动。

如何将此操作恢复到我想要用作Caps Lock其默认映射的位置?

windows-10
  • 1 个回答
  • 892 Views
Martin Hope
alper
Asked: 2021-03-30 03:16:40 +0800 CST

当我不使用 ForwardX11 变量 (-Y) 时 ssh 连接卡住

  • 5

当我尝试ssh连接到远程机器时,如果我不使用 ForwardX11 变量作为-Y. 终端冻结,我无法取消操作,我必须关闭终端才能退出。

出现此类问题的主要原因可能是什么?

可以ssh在不使用 ForwardX11 变量的情况下自动尝试另一种方法来进行新的连接尝试或强制连接吗?


我的调试输出:

尝试在连接期间冻结ssh:

$ ssh -v user@IP

OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/alper/.ssh/config
debug1: /Users/alper/.ssh/config line 9: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: /etc/ssh/ssh_config line 51: Applying options for *
debug1: Connecting to 192.168.1.8 [192.168.1.8] port 22.
debug1: Connection established.
debug1: identity file /Users/alper/.ssh/id_rsa type 0
debug1: identity file /Users/alper/.ssh/id_rsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_dsa type -1
debug1: identity file /Users/alper/.ssh/id_dsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_ecdsa type -1
debug1: identity file /Users/alper/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_ed25519 type -1
debug1: identity file /Users/alper/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/alper/.ssh/id_xmss type -1
debug1: identity file /Users/alper/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.1.8:22 as 'alper'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:ukLpqw3yNMx9D29UnmY5rSJRc6Y0ENlAK2R2DNjyljY
debug1: Host '192.168.1.8' is known and matches the ECDSA host key.
debug1: Found key in /Users/alper/.ssh/known_hosts:51
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Will attempt key: /Users/alper/.ssh/id_dsa
debug1: Will attempt key: /Users/alper/.ssh/id_ecdsa
debug1: Will attempt key: /Users/alper/.ssh/id_ed25519
debug1: Will attempt key: /Users/alper/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected]>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Server accepts key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Authentication succeeded (publickey).
Authenticated to 192.168.1.8 ([192.168.1.8]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Remote: /home/alper/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/alper/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding

工作连接:

$ ssh -Yv user@IP
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/alper/.ssh/config
debug1: /Users/alper/.ssh/config line 9: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: /etc/ssh/ssh_config line 51: Applying options for *
debug1: Connecting to 192.168.1.8 [192.168.1.8] port 22.
debug1: Connection established.
debug1: identity file /Users/alper/.ssh/id_rsa type 0
debug1: identity file /Users/alper/.ssh/id_rsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_dsa type -1
debug1: identity file /Users/alper/.ssh/id_dsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_ecdsa type -1
debug1: identity file /Users/alper/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/alper/.ssh/id_ed25519 type -1
debug1: identity file /Users/alper/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/alper/.ssh/id_xmss type -1
debug1: identity file /Users/alper/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.1.8:22 as 'alper'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:ukLpqw3yNMx9D29UnmY5rSJRc6Y0ENlAK2R2DNjyljY
debug1: Host '192.168.1.8' is known and matches the ECDSA host key.
debug1: Found key in /Users/alper/.ssh/known_hosts:51
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Will attempt key: /Users/alper/.ssh/id_dsa
debug1: Will attempt key: /Users/alper/.ssh/id_ecdsa
debug1: Will attempt key: /Users/alper/.ssh/id_ed25519
debug1: Will attempt key: /Users/alper/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected]>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Server accepts key: /Users/alper/.ssh/id_rsa RSA SHA256:5HDbKAE8ePtTuGB48GSxWzeykOSUKKO5fxG2ub7YTvc
debug1: Authentication succeeded (publickey).
Authenticated to 192.168.1.8 ([192.168.1.8]:22).
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: Remote: /home/alper/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/alper/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending environment.
debug1: Sending env LC_TERMINAL_VERSION = 3.4.20210315-nightly
debug1: Sending env LC_CTYPE = en_US.UTF-8
debug1: Sending env LC_TERMINAL = iTerm2
debug1: Sending env LC_ALL = en_US.UTF-8
debug1: Sending env LANG = en_US.UTF-8
ssh x11-forwarding
  • 1 个回答
  • 147 Views
Martin Hope
alper
Asked: 2020-11-16 05:29:28 +0800 CST

是否可以在 Windows 启动时自动启动 VMware 虚拟机

  • 6

在 Windows 中;我正在使用具有 Ubuntu 实例的VMware Workstation 16 Player非商业版本。

当 Windows 启动时,我希望我的 Ubuntu Instace 也能自动开始运行。可能吗?

请注意,为此建议使用wmrun,但它没有附带VMware Workstation 16 Player,我不知道在哪里可以下载它或者它仍然被支持。

windows boot
  • 1 个回答
  • 333 Views
Martin Hope
alper
Asked: 2020-11-02 08:08:42 +0800 CST

如果组所有者是“root”,如何在控制台中更改文件的颜色 ls?

  • 7

我在一个挂载的文件夹/mnt/hgfs中:因此所有文件的所有者都是root.

在这个文件夹中,当我ls为所有文件着色时显示为绿色,并且对于所有文件夹,都有绿色突出显示。是否可以使用 : 的默认颜色,ls即:

❯ echo $LS_COLORS
rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

主目录下的默认颜色: 在此处输入图像描述


目录下的颜色mnt:

在此处输入图像描述

colors root
  • 2 个回答
  • 531 Views
Martin Hope
alper
Asked: 2020-10-20 00:39:54 +0800 CST

如何在 VMware Workstation 15 中通过 ssh 连接到 linux 主机

  • 5

我在 Windows 10 中使用VMware Workstation 15。我在它下面创建了一个 Ubuntu 实例。从另一台机器,ssh如果我连接到本地网络,我可以进入它,但我无法使用 Windows 机器的公共 IP 连接到它。

  • 如果我使用桥接网络选项,ifconfig则在 ubuntu 主机中会返回一个本地 IP 地址,如果我在本地网络中,我可以通过 ssh 访问该地址。

  • 我正在考虑通过 ssh 进入 Windows-powershell 的一种可能解决方案,如果可以的话,我可以通过 ssh 进入虚拟机。

[Q]如何使用公共 ip 连接到在 VMware Workstation 中运行的 Ubuntu 实例?

此处接受的答案适用于旧版本的 VMware Workstation。


我找不到适用于 VMware Workstation 15 的指南,我找到的所有指南都是针对其旧版本的,例如:

=> https://www.virten.net/2013/03/how-to-setup-port-forwarding-in-vmware-workstation-9/

=> https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-D884CB72-28A5-4F03-9B82-783F523C256C.html


我最初的问题在stackoverflow( https://stackoverflow.com/q/64081856/2402577 )上已关闭,因此建议我在这里提问。

windows networking
  • 1 个回答
  • 657 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve