# How to setup Key Auth/Password for Client Server Auth in Windows

**URL:** https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012
**Category:** ParaView Support
**Created:** [February 24, 2024, 11:43pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012 "2024-02-24T23:43:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [February 24, 2024, 11:43pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/1 "2024-02-24T23:43:46Z")

</div>

Hi, I’m trying to set up a Paraview client/server. I’m using the client in Windows & server in Ubuntu. I’m writing the pvsc file to set up, and I’m stuck at authentication.

when I try to connect to a server, I can enter the password in the terminal, but there is no automated setup. For this, I’m playing around with the delay option by setting a longer time so that I can enter the password before the client tries to connect to the server.

I’m trying to set up a public/private key setup, but I don’t see any tag in to pass a key file to authenticate.

Help me with the correct approach to authenticate clients with the server from a windows machine.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2024, 1:23pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/2 "2024-02-26T13:23:07Z")

</div>

> [@gpuligundla](#):
>
> but there is no automated setup.

Setup a ssh key

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [February 26, 2024, 1:41pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/3 "2024-02-26T13:41:15Z")

</div>

I have set the SSH key, but how do I pass it to PVSC, i mean what is the tag for it in `<SSHConfig>`

currently, I’m using as below, though it works there is no standard way

```auto
<SSHConfig user="$SSH_USER$">
	  <Terminal/>
	  <SSH exec="ssh -i <PATH>" />
	</SSHConfig>

```

I’m looking for something like `<SSHIdentityFile>` or something similar

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2024, 1:50pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/4 "2024-02-26T13:50:52Z")

</div>

There is nothing to put in the pvsc, it will “just work”.

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [February 26, 2024, 2:13pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/5 "2024-02-26T14:13:02Z")

</div>

So `<SSH exec="ssh -i <PATH>" />` this the correct way to use the ssh key?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2024, 2:17pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/6 "2024-02-26T14:17:53Z")

</div>

Yes, if you want to use a specific ssh key, but you should be able to set that in your `.ssh/config`

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [February 26, 2024, 2:20pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/7 "2024-02-26T14:20:38Z")

</div>

how can i set up ssh-add for autologin with this setup in Windows instead of passing `ssh -i` ?  
because in the default terminal(CMD) it doesn’t hold values & prompt asks to enter password.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2024, 2:24pm UTC](https://discourse.paraview.org/t/how-to-setup-key-auth-password-for-client-server-auth-in-windows/14012/8 "2024-02-26T14:24:22Z")

</div>

> **[OpenSSH Server configuration for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration)**
>
> Learn about the Windows-specific configuration options for OpenSSH Server on Windows Server and Windows.

> **[Key-based authentication in OpenSSH for Windows](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement)**
>
> Learn about OpenSSH Server key-based authentication, generation and deployment for Windows using built-in Windows tools or PowerShell.
