Windows 10: Cannot set an alias in ssh config file

Discus and support Cannot set an alias in ssh config file in Windows 10 Ask Insider to solve the problem; I have a raspberry in my network which I control using ssh from my Windows 10 machine. If I use this command from the Windows command line (where... Discussion in 'Windows 10 Ask Insider' started by /u/UltraPoci, Jan 1, 2021.

  1. Cannot set an alias in ssh config file


    I have a raspberry in my network which I control using ssh from my Windows 10 machine. If I use this command from the Windows command line (where clearly pi is the user on the raspberry):

    ssh pi@192.168.1.210

    I am asked for the raspberry's password and everything works fine.

    I would like to simply be able to alias all of this to a shorter command and be able to write, for example:

    ssh rasp

    where rasp is just a placeholder I chose. I searched online and found that I should put in my .ssh folder a file named "config" with the following instructions:

    HOST rasp USER pi HOSTNAME 192.168.1.210 PORT 22

    But when I type ssh rasp I got a message that says that the host refused the connection on port 22. I tried changing the indentation but it didn't change anything, so that shouldn't be a problem.

    So, how do I correctly set an alias for my raspberry?

    EDIT: I've had to tinker A LOT with the permissions on this file, since at first the only message I got was "Bad permission etc", even when using the full command that works without the config file. I don't think it is a permissions problem now, but I figured I should mention this.

    submitted by /u/UltraPoci
    [link] [comments]

    :)
     
    /u/UltraPoci, Jan 1, 2021
    #1
  2. franzda Win User

    OpenSSH server configuration on Windows10 .ssh\config

    SSH for Windows 10

    I get the message "Bad owner or permissions on C: \\ Users \\ nnn / .ssh / config

    Apart from update no other changes.

    Does anyone have any idea what that could be.
    If I delete the config file I get a connection.
    The Config file is required by Visual Studio Code

    Windows 10 / Version 1909 / Build 18363.657
    OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
     
    franzda, Jan 1, 2021
    #2
  3. Milas Win User
    Hosts File Alias not working with File Share


    I can set an alias in the hosts file on a win7 machine and access it just fine but doing the same in Win10 prompts for creds that never work even when entered correctly.
    What did win10 change?

    hosts file entry:
    127.0.0.1 hostname alias

    \\ip - works fine
    \\hostname -works fine
    \\alias - Prompts for creds and creds don't work

    I have gone to the extent of fully disabling UAC from reg, same outcome. Network and file sharing is set to password access and not homegroup. Simple file sharing is off.

    Something to note. I always disable ipv6 form the adapter but when I ping my hostname it shows the ipv6 loopback. Why is that?
    When I ping the alias it returns 127.0.0.1 ipv4 loopback that was entered in the hostname.

    Any suggestions are greatly appreciated.
    Thanks
     
    Milas, Jan 1, 2021
    #3
  4. Cannot set an alias in ssh config file

    BF4 Config Utility

    Thanks for using my Utility buddy. Now to your questions. *Toast :toast:

    • Both of those settings are in the config file by default. I can't confirm, but I believe aim assist works only in single player and only with a gamepad. Deadzone works with joysticks and gamepads.
    • Console anti alias is the game menu. Turning it off will improve performance.
    • Yes, transparent shadows are on by default.
     
    Mindweaver, Jan 1, 2021
    #4
Thema:

Cannot set an alias in ssh config file

Loading...
  1. Cannot set an alias in ssh config file - Similar Threads - Cannot set alias

  2. This alias cannot be added to your account. Choose a different alias

    in Windows 10 Gaming
    This alias cannot be added to your account. Choose a different alias: when I try to add my phone number to my account it says "This alias cannot be added to your account. Choose a different alias" The account that was connected to the number was hacked and disabled but It still won't let me add my number....
  3. This alias cannot be added to your account. Choose a different alias

    in Windows 10 Software and Apps
    This alias cannot be added to your account. Choose a different alias: when I try to add my phone number to my account it says "This alias cannot be added to your account. Choose a different alias" The account that was connected to the number was hacked and disabled but It still won't let me add my number....
  4. "This alias cannot be added to your account. Choose a different alias.".

    in Windows 10 Gaming
    "This alias cannot be added to your account. Choose a different alias.".: When I want to add a phone number to my information, I get an error: "This alias cannot be added to your account. Choose a different alias.". And when I put a different alias, I get the same error....
  5. "This alias cannot be added to your account. Choose a different alias.".

    in Windows 10 Software and Apps
    "This alias cannot be added to your account. Choose a different alias.".: When I want to add a phone number to my information, I get an error: "This alias cannot be added to your account. Choose a different alias.". And when I put a different alias, I get the same error....
  6. This alias cannot be added to your account. Choose a different alias.

    in Windows 10 Gaming
    This alias cannot be added to your account. Choose a different alias.: I'm trying to revert my phone number but I get, This alias cannot be added to your account. Choose a different alias.It's the original phone number in this account....
  7. This alias cannot be added to your account. Choose a different alias.

    in Windows 10 Software and Apps
    This alias cannot be added to your account. Choose a different alias.: I'm trying to revert my phone number but I get, This alias cannot be added to your account. Choose a different alias.It's the original phone number in this account....
  8. Config File to Enforce View Settings of a Folder

    in Windows 10 Support
    Config File to Enforce View Settings of a Folder: Hi all Can a configuration file (like .ini) be kept inside a folder to enforce the following settings of a folder: The Folder View (Including the default options or custom zoom levels between default options) Sort by settings (The actual order as well as...
  9. Setting up SSH in WSL2

    in Windows 10 Customization
    Setting up SSH in WSL2: Hey there! I have been using Ubuntu 20.04 on WSL2. I have successfully installed SSH in it, but while trying to connect with my IP Address, it shows the error "ssh: connect to host <IP Address> port 22: connection refused". I have already tested the same installation...
  10. OpenSSH server configuration on Windows10 .ssh\config

    in Windows 10 Network and Sharing
    OpenSSH server configuration on Windows10 .ssh\config: SSH for Windows 10 I get the message "Bad owner or permissions on C: \\ Users \\ nnn / .ssh / config Apart from update no other changes. Does anyone have any idea what that could be. If I delete the config file I get a connection. The Config file is required by Visual...