mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Compare commits
2 commits
b2e43f4bad
...
3325bb3a4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3325bb3a4e | ||
|
|
0913311351 |
2 changed files with 13 additions and 3 deletions
|
|
@ -199,6 +199,12 @@ hostname:token string. Place this string into $HOME/.xs_id to allow logins witho
|
||||||
entering a password (obviously, $HOME/.xs_id on both server and client for the user
|
entering a password (obviously, $HOME/.xs_id on both server and client for the user
|
||||||
should *not* be world-readable.)
|
should *not* be world-readable.)
|
||||||
|
|
||||||
|
```
|
||||||
|
$ xs -g user@host.net >~/.xs_id
|
||||||
|
```
|
||||||
|
[enter password blindly, authtoken entry will be stored in ~/.xs_id]
|
||||||
|
|
||||||
|
|
||||||
### File Copying using xc
|
### File Copying using xc
|
||||||
|
|
||||||
xc is a symlink to xs, and the binary checks its own filename to determine whether
|
xc is a symlink to xs, and the binary checks its own filename to determine whether
|
||||||
|
|
|
||||||
4
xs/xs.go
4
xs/xs.go
|
|
@ -1007,10 +1007,14 @@ func main() { //nolint: funlen, gocyclo
|
||||||
})
|
})
|
||||||
|
|
||||||
if authCookie == "" {
|
if authCookie == "" {
|
||||||
|
if !gopt {
|
||||||
// No auth token, prompt for password
|
// No auth token, prompt for password
|
||||||
fmt.Printf("Gimme cookie:")
|
fmt.Printf("Gimme cookie:")
|
||||||
|
}
|
||||||
ab, e := xs.ReadPassword(os.Stdin.Fd())
|
ab, e := xs.ReadPassword(os.Stdin.Fd())
|
||||||
|
if !gopt {
|
||||||
fmt.Printf("\r\n")
|
fmt.Printf("\r\n")
|
||||||
|
}
|
||||||
if e != nil {
|
if e != nil {
|
||||||
panic(e)
|
panic(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue