2018-08-12 14:38:45 +02:00
|
|
|
@model BTCPayServer.Models.ServerViewModels.SSHServiceViewModel
|
|
|
|
@{
|
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<h4>SSH settings</h4>
|
2019-09-19 12:17:20 +02:00
|
|
|
<partial name="_StatusMessage" for="@TempData["TempDataProperty-StatusMessage"]" />
|
2018-08-12 14:38:45 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="form-group">
|
|
|
|
<p>
|
2019-01-09 17:35:32 +01:00
|
|
|
<span>SSH services are used by the maintenance operations<br /></span>
|
2018-08-12 14:38:45 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="CommandLine"></label>
|
|
|
|
<input asp-for="CommandLine" readonly class="form-control" />
|
|
|
|
</div>
|
2019-09-19 12:17:20 +02:00
|
|
|
@if (!string.IsNullOrEmpty(Model.Password))
|
2018-08-12 14:38:45 +02:00
|
|
|
{
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Password"></label>
|
|
|
|
<input asp-for="Password" readonly class="form-control" />
|
|
|
|
</div>
|
|
|
|
}
|
2019-09-19 12:17:20 +02:00
|
|
|
@if (!string.IsNullOrEmpty(Model.KeyFilePassword))
|
2018-08-12 14:38:45 +02:00
|
|
|
{
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="KeyFilePassword"></label>
|
|
|
|
<input asp-for="KeyFilePassword" readonly class="form-control" />
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-19 12:17:20 +02:00
|
|
|
|
|
|
|
@if (Model.CanConnect)
|
|
|
|
{
|
|
|
|
<h4>Authorized keys</h4>
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="form-group">
|
|
|
|
<p>
|
|
|
|
<span>You can enter here SSH public keys authorized to connect to your server.<br /></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="post">
|
|
|
|
<div class="form-group">
|
|
|
|
<textarea asp-for="SSHKeyFileContent" rows="20" cols="80" class="form-control"></textarea>
|
|
|
|
<span asp-validation-for="SSHKeyFileContent" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<button id="submit" type="submit" class="btn btn-primary" value="Save">Save</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|