how do I ssh while automatically using the password I use for my account

user2236185

Hi I have some hosts I need to ssh to, the username I use for those hosts are different then the username of the pc that I ssh from. but the password is the same, is it possible that when I ssh it will automatically use the password of the pc that I ssh from.

Also some hosts that I ssh to, have the same username and password of the computer that I ssh from. How can I tell ssh to automatically use the same password and username that I use in the pc that I ssh from?

thanks.

Archemar
  1. ssh/sshd do not use might be told to ignore unix password, by using public/private key, those keys might have password, but it is seldom the case in linux/unix world.
  2. you can change, on a per session bassis distant username with either:

    ssh -l john distant
    ssh john@distant
    
  3. as told in https://stackoverflow.com/questions/10197559/ssh-configuration-override-the-default-username , you can use a local config file (~/.ssh/config) to change username on a host basis.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How do I allow SFTP with a password BUT not SSH?

分類Dev

How do I set up SSH so I don't have to type a password, and without using a public key?

分類Dev

How do I use while true in threads?

分類Dev

How do I use "<<" with my own struct?

分類Dev

How do I tweet from my bot account when the bot app is created under a separate account?

分類Dev

How do I serve my index.html file while using PHP Slim REST Api?

分類Dev

How do I fix my random number while loop?

分類Dev

Why is my while going in a infinity loop? How do I fix it?

分類Dev

How do I fix this do-while loop so console program prompts the user before automatically closing?

分類Dev

In PHP, how do I use conditionals while reading text file?

分類Dev

How do I use a while loop with an onTouch function? (Android)

分類Dev

How can I encrypt my pendrive with password?

分類Dev

How do I run gulp eslint continuously and automatically while fixing files -- how to set up watch

分類Dev

Magento - How can I tell if I'm on a "My Account" page?

分類Dev

How Can i send the email from the MVC4 to my gmail without using my password?

分類Dev

How do I iterate over an ndarray without using for/while loops?

分類Dev

How do I get the MsalGuard to use my client ID?

分類Dev

How do I use bootstrap for my rails application?

分類Dev

How do I get ssh to use only one key from ssh-agent?

分類Dev

Travis CI: How do I escape my password for `travis encrypt` to work?

分類Dev

How do I specify a Diesel DATABASE_URL when my password contains an at-sign (@)?

分類Dev

I am trying to use a do while loop to repeat a certain portion of my program and it refuses to execute properly

分類Dev

How do I create a condition with my script using the if statement?

分類Dev

How do I check if my computer is using the Google Public DNS

分類Dev

How Do I Model My Results Using Java Collections?

分類Dev

How do I check if my MVC session expired, using ajax?

分類Dev

How do i Unit Test my RelayCommand using Moq?

分類Dev

How do I access my Virtualbox using Vagrant on Windows 7

分類Dev

How do I use fscanf from the beginning each time when I am in a for / while loop?

Related 関連記事

  1. 1

    How do I allow SFTP with a password BUT not SSH?

  2. 2

    How do I set up SSH so I don't have to type a password, and without using a public key?

  3. 3

    How do I use while true in threads?

  4. 4

    How do I use "<<" with my own struct?

  5. 5

    How do I tweet from my bot account when the bot app is created under a separate account?

  6. 6

    How do I serve my index.html file while using PHP Slim REST Api?

  7. 7

    How do I fix my random number while loop?

  8. 8

    Why is my while going in a infinity loop? How do I fix it?

  9. 9

    How do I fix this do-while loop so console program prompts the user before automatically closing?

  10. 10

    In PHP, how do I use conditionals while reading text file?

  11. 11

    How do I use a while loop with an onTouch function? (Android)

  12. 12

    How can I encrypt my pendrive with password?

  13. 13

    How do I run gulp eslint continuously and automatically while fixing files -- how to set up watch

  14. 14

    Magento - How can I tell if I'm on a "My Account" page?

  15. 15

    How Can i send the email from the MVC4 to my gmail without using my password?

  16. 16

    How do I iterate over an ndarray without using for/while loops?

  17. 17

    How do I get the MsalGuard to use my client ID?

  18. 18

    How do I use bootstrap for my rails application?

  19. 19

    How do I get ssh to use only one key from ssh-agent?

  20. 20

    Travis CI: How do I escape my password for `travis encrypt` to work?

  21. 21

    How do I specify a Diesel DATABASE_URL when my password contains an at-sign (@)?

  22. 22

    I am trying to use a do while loop to repeat a certain portion of my program and it refuses to execute properly

  23. 23

    How do I create a condition with my script using the if statement?

  24. 24

    How do I check if my computer is using the Google Public DNS

  25. 25

    How Do I Model My Results Using Java Collections?

  26. 26

    How do I check if my MVC session expired, using ajax?

  27. 27

    How do i Unit Test my RelayCommand using Moq?

  28. 28

    How do I access my Virtualbox using Vagrant on Windows 7

  29. 29

    How do I use fscanf from the beginning each time when I am in a for / while loop?

ホットタグ

アーカイブ