Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Password Entry for R, Git, and SSH

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/askpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Entry Utilities for R, Git, and SSH

CRAN_Status_BadgeCRAN RStudio mirror downloads

Cross-platform utilities for prompting the user for credentials or apassphrase, for example to authenticate with a server or read a protected key.Includes native programs for MacOS and Windows, hence no 'tcltk' is required.Password entry can be invoked in two different ways: directly from R via theaskpass() function, or indirectly as password-entry back-end for 'ssh-agent'or 'git-credential' via the SSH_ASKPASS and GIT_ASKPASS environment variables.Thereby the user can be prompted for credentials or a passphrase if neededwhen R calls out to git or ssh.

Called from R

To invoke the password prompt manually use:

askpass::askpass()

This is used for example to read protected key files:

library(openssl)key<- rsa_keygen()write_pem(key,'testkey.pem',password='supersecret')read_key('testkey.pem')

Called from SSH / Git

The package also configures itself as the password entry back-end for ssh-agent and git-credential.The easiest way to test this is using the credentials package:

remotes::install_github("r-lib/credentials")git_credential_ask('https://example.com')

R for MacOS

askpass-mac

RStudio (server, desktop)

askpass-rs

RGUI / Windows

askpass-rs

Terminal

askpass-rs

About

Password Entry for R, Git, and SSH

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp