<p>Though not really bitcoin related...
How are the two systems connected? I mean, can you already login via ssh? Or do you only have a terminal running on both, and no ssh daemon? </p>

<p>If no ssh daemon, then netcat is the tool of choice. 
If ssh daemon is running, use secure copy tool:</p>

<pre><code>scp -port source target
</code></pre>

<p>e.g.: </p>

<pre><code>scp -P 22022 ~/.bitcoin/wallet.dat 192.168.92.117:/home/mybitcoinuser/.bitcoin
</code></pre>

<p>And lastly, if the target server doesn‘t run ssh daemon, you can for sure start one in your terminal, and execute the scp from the target server (adopting the source and target).</p>

<p>There is a capital P when using scp.</p>

CC BY-SA 3.0
2018-01-30T22:54:09.423Z
Ah, just re-read question. you have ssh, so the first approach with scp should work...
pebwindkraft
CC BY-SA 3.0
2018-02-01T13:46:45.053Z
I do have ssh access to the remote server. But my virtual server where dev site is running - does not. My host machine is windows, so I can copy wallet.dat from my dev server to windows, but cant copy it to remove target server since to connect I use putty ssh manager and it doesnt have an access to my windows files.
Denis Matafonov
CC BY-SA 3.0
2018-02-01T14:02:56.907Z
ahh, windows... and you have 3 machines involved... I am not clear: a windows host, with a virtual dev machine, and a remote server. And you want to send from Windows to the virtual machine or to remote server? I remember, that using pscp.exe was the tool, which allows to send files to a remote machines from a windows box...
pebwindkraft
CC BY-SA 3.0
2018-02-01T21:29:59.090Z
`pscp.exe` doent even start :(
Denis Matafonov
CC BY-SA 3.0
2018-02-01T22:25:11.473Z
Ok, now it gets more and more complicated, and doesn’t add value to the bitcoin community. Probably you need to find the software, get it installed, and maybe look into the Windows areas on further howto...
pebwindkraft
CC BY-SA 3.0
2018-01-30T22:51:57.110Z
2018-01-30T22:51:57.110Z
pebwindkraft
<p>Sorry for dummy question at first.</p>

<p>I have developed an application on my local dev machine. Now I want to make a realease on production server located elsewhere to which I have ssh access.</p>

<p>I dont want to put my wallet.dat in git. Of course.
But dedicated server doesnt have access to my local virtual ubuntu developer machine where wallet.dat is kept.</p>

<p>So I have to copy my wallet.dat from one virtual machine it terminal to another terminal. I thought I could dump keys to some text file and simply copypast it between servers. But <code>dumpwallet</code> command creates file with hundreeds of addresses and each one of them should be than imported on by one by <code>importprivkey</code> and there is no option to import dumped file (weird, no?)</p>

<bitcoind><wallet-import>
How to transfer my wallet.dat to dedicated Ubuntu server
Denis Matafonov
# How to transfer my wallet.dat to dedicated Ubuntu server

(Asked by: username_0 on 2018-01-30)

Sorry for dummy question at first.

I have developed an application on my local dev machine. Now I want to make a realease on production server located elsewhere to which I have ssh access.

I dont want to put my wallet.dat in git. Of course.
But dedicated server doesnt have access to my local virtual ubuntu developer machine where wallet.dat is kept.

So I have to copy my wallet.dat from one virtual machine it terminal to another terminal. I thought I could dump keys to some text file and simply copypast it between servers. But `dumpwallet` command creates file with hundreeds of addresses and each one of them should be than imported on by one by `importprivkey` and there is no option to import dumped file (weird, no?)

**Tags:** bitcoind, wallet-import


---

## 1 answers

### Answer by username_1 on 2018-01-30. Score: 1

Though not really bitcoin related...
How are the two systems connected? I mean, can you already login via ssh? Or do you only have a terminal running on both, and no ssh daemon?

If no ssh daemon, then netcat is the tool of choice.
If ssh daemon is running, use secure copy tool:

```
scp -port source target

```

e.g.:

```
scp -P 22022 ~/.bitcoin/wallet.dat 192.168.92.117:/home/mybitcoinuser/.bitcoin

```

And lastly, if the target server doesn‘t run ssh daemon, you can for sure start one in your terminal, and execute the scp from the target server (adopting the source and target).

There is a capital P when using scp.

> **Comments:**
> **username_1**: Ah, just re-read question. you have ssh, so the first approach with scp should work...  
> **username_0**: I do have ssh access to the remote server. But my virtual server where dev site is running - does not. My host machine is windows, so I can copy wallet.dat from my dev server to windows, but cant copy it to remove target server since to connect I use putty ssh manager and it doesnt have an access to my windows files.  
> **username_1**: ahh, windows... and you have 3 machines involved... I am not clear: a windows host, with a virtual dev machine, and a remote server. And you want to send from Windows to the virtual machine or to remote server? I remember, that using pscp.exe was the tool, which allows to send files to a remote machines from a windows box...  
> **username_0**: `pscp.exe` doent even start :(  
> **username_1**: Ok, now it gets more and more complicated, and doesn’t add value to the bitcoin community. Probably you need to find the software, get it installed, and maybe look into the Windows areas on further howto...  

---

