# SSH access issue

**URL:** <https://forum.cardano.org/t/ssh-access-issue/110028>\
**Category:** Setup a Stake Pool\
**Tags:** setup\
**Created:** [6 November 2022 12:33 UTC](https://forum.cardano.org/t/ssh-access-issue/110028 "2022-11-06T12:33:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neeraj](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@Neeraj](https://forum.cardano.org/u/Neeraj)\
**Post date:** [6 November 2022 12:33 UTC](https://forum.cardano.org/t/ssh-access-issue/110028/1 "2022-11-06T12:33:50Z")

</div>

Is there any difference between ssh root@72.287.155.76 and ssh -i ~/.ssh root@72.287.155.76. Because when I do ssh root@72.287.155.76 I can access my server and when I do ssh -i ~/.ssh root@72.287.155.76. . its asking for server password.

Why it is so.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [6 November 2022 12:43 UTC](https://forum.cardano.org/t/ssh-access-issue/110028/2 "2022-11-06T12:43:48Z")

</div>

`-i` is an option to give a specific identity file, but `~/.ssh` is usually not a file, but the directory the file is stored in.

If you do your second command, `ssh` does not find an identity file and falls back to password login.

---

<div class="post-metadata">

**Author:** ![Neeraj](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@Neeraj](https://forum.cardano.org/u/Neeraj)\
**Post date:** [13 November 2022 01:14 UTC](https://forum.cardano.org/t/ssh-access-issue/110028/3 "2022-11-13T01:14:15Z")

</div>

hi,  
since two days I’m trying to link my ssh connection with 2FA. But unfortunately im getting the error after entering the password of my user account and verification code from google Authenticator **Connection closed by 55.555.55.55 port 22222**. I followed the coin cashew guide and configured /etc/pam.d/sshd and etc/ssh/sshd\_config for the setup ([Hardening an Ubuntu Server - CoinCashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/part-i-installation/hardening-an-ubuntu-server)). I did exactly what they told but still im not able to do the 2FA. I googled a lot and found a person who had a similar issue while configuring 2FA, please see this link([debian - error: PAM: User account has expired for [user] from [IP] - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/687371/error-pam-user-account-has-expired-for-user-from-ip) ). Could you please help me out.

---

<div class="post-metadata">

**Author:** ![Aaron\_Priebe](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/aaron_priebe/32/62809_2.png) [@Aaron\_Priebe](https://forum.cardano.org/u/Aaron_Priebe)\
**Post date:** [2 March 2023 18:39 UTC](https://forum.cardano.org/t/ssh-access-issue/110028/4 "2023-03-02T18:39:55Z")

</div>

Were you able to get your QR code and scan that into your authenticator app? Also, the link to the unix stack exchange … is that your configuration, or just an example of what’s happening to you?
