Sync from SUSE:SLFO:Main ssh-pairing revision 8d324cd04541920b866d80fe760694f5

This commit is contained in:
Adrian Schröter 2024-06-08 11:23:48 +02:00
commit 46e9229915
7 changed files with 149 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/Vogtinator/ssh-pairing.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">v(.*?)(\+git0)?$</param>
</service>
<service mode="manual" name="set_version" />
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Vogtinator/ssh-pairing.git</param>
<param name="changesrevision">628f243170e79c6435254d6fb9eec3eee543d05d</param></service></servicedata>

BIN
ssh-pairing-0.2.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

45
ssh-pairing.changes Normal file
View File

@ -0,0 +1,45 @@
-------------------------------------------------------------------
Fri Apr 12 13:20:34 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Update to version 0.2:
* Ask for key import individually
* Use SSH_STRING_FREE_CHAR instead of plain free
- Use mode="manual" in _service
-------------------------------------------------------------------
Wed Feb 14 08:50:18 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Update to version 0.1+git18:
* Add Security Considerations section to README.md
* Mention ssh-pairing prefix also in README.md
* Add ssh-pairing prefix to the client success message
* Clarify comment
* Show ssh-pairing-server stderr on failure
* Fail if kbd-interactive does not complete
-------------------------------------------------------------------
Fri Jan 26 15:54:45 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Update to version 0.1+git12:
* Avoid unnecessary strlcpy
-------------------------------------------------------------------
Fri Jan 26 14:51:06 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Update to version 0.1+git11:
* Document ssh-pairing tool
* Make it clear that the client message is important
* No bogus output
* Make shellcheck happy
* Add ssh-pairing tool
* Add a usage message
* Shorten status message sent to the client
* Print received keys immediately
* Some README.md improvements
* Fix indentation
* Use NI_MAXHOST
-------------------------------------------------------------------
Thu Jan 18 11:24:43 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Initial commit

4
ssh-pairing.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: ssh-pairing
version: 0.2
mtime: 1712927233
commit: 628f243170e79c6435254d6fb9eec3eee543d05d

55
ssh-pairing.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package ssh-pairing
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ssh-pairing
Version: 0.2
Release: 0
Summary: Passwordless SSH key exchange through pairing
License: GPL-2.0-or-later
URL: https://github.com/Vogtinator/ssh-pairing
Source0: %{name}-%{version}.tar.xz
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libssh)
Requires: dialog
Requires: hostname
Requires: /usr/bin/ssh-keygen
%description
This tool allows to use pairing (like bluetooth, kde connect, ...) for exchanging public SSH keys, basically as alternative to ssh-copy-id.
With this, setting up SSH authentication is more user friendly, as the user's public key does not need to be transferred to the server manually.
It is arguably also more secure, as no passwords are involved, not even temporarily just to be able to ssh-copy-id.
This tool is design to be used as part of some CLI or TUI, but can also be used manually.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%files
%license LICENSE
%doc README.md
%{_sbindir}/ssh-pairing
%{_sbindir}/ssh-pairing-server
%changelog