ssh

Using SCP function from Rcurl in R

我与影子孤独终老i 提交于 2021-01-28 11:35:27
问题 I have tested my SSH authentication using PuTTY with success, which I mean I can ssh to remote server using the private key provided. However, I am trying to use SCP function from Rcurl package in R, I got the error message saying: Error in function (type, msg, asError = TRUE) : Authentication failure Here is my code r <- scp(host='eee.com', path = "/aaa/bbb/test.sas7bdat", keypasswd = NA, user = "yyyyyy", rsa = TRUE, key = "C:/Users/.ssh/authorized_keys", binary = NA) C:/Users/.ssh

Google Cloud Platform fix SSH

て烟熏妆下的殇ゞ 提交于 2021-01-28 11:19:53
问题 I have a problem with SSH access on my google compute engine . I made a server, set up the application on it and configured the domain and everything works. After a few days when I wanted to approach her to make changes my SSH didn’t work. I have one assumption I was turning on firewall and I didn't add a rule for SSH , maybe that's a problem? But how to access the machine now and enable it? Thanks in advance . 回答1: To solve your issue you can connect to your VM instance via serial console.

Two GitHub accounts on the same computer

こ雲淡風輕ζ 提交于 2021-01-28 10:26:39
问题 First of all I know that this question has been asked and answered several times, but all solutions that I've found don't work. Task is very simple - I have two GitHub accounts, one personal and second for business. I tried to use a few configurations, but all were like this: Host github.com-personal HostName github.com User kagarlickij IdentityFile ~/.ssh/github_kagarlickij_private Host github.com-business HostName github.com User dmytriy-kagarlickij IdentityFile ~/.ssh/github_dmytriy

Two GitHub accounts on the same computer

旧街凉风 提交于 2021-01-28 10:24:59
问题 First of all I know that this question has been asked and answered several times, but all solutions that I've found don't work. Task is very simple - I have two GitHub accounts, one personal and second for business. I tried to use a few configurations, but all were like this: Host github.com-personal HostName github.com User kagarlickij IdentityFile ~/.ssh/github_kagarlickij_private Host github.com-business HostName github.com User dmytriy-kagarlickij IdentityFile ~/.ssh/github_dmytriy

While SSH'ing following error occures - unable to establish master SSH connection: master process exited unexpectedly

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-28 07:39:58
问题 I have a script which does ssh to number of servers ( @alive_hosts ) stored in an array and executes certain commands on those hosts (these hosts are IP address). ... use Net::Ping; use Net::OpenSSH; use Parallel::ForkManager; #these hosts are the IP addresses my @hosts = ("host1", "host2", "host3", "host4", "host5"); my $p = Net::Ping->new(); foreach my $hostname (@hosts){ my ($ret, $duration, $ip) = $p->ping($hostname); push (@alive_hosts, $hostname) if $ret; } my $ssh; my $command = "perl

In Fedora 33, git operations with ssh id_rsa file fail on GitLab.com

点点圈 提交于 2021-01-28 07:12:19
问题 Since I've installed Fedora 33, any git operation with GitLab.com (and with a different symptom, azure) fail. On GitLab.com I get: git@gitlab.com: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Azure simply asks for password without showing any errors. 回答1: As suggested in here, the fix for gitlab is to save these lines in ~/.ssh/config file: Host gitlab.com

ssh in bash script exits loop [duplicate]

。_饼干妹妹 提交于 2021-01-28 01:44:56
问题 This question already has answers here : While loop stops reading after the first line in Bash (4 answers) Closed 3 years ago . I am trying to run some commands on few remote hosts. I have the list of their ips in a file ips.txt (one ip per line). #!/bin/bash while IFS= read -r wip; do echo $wip ssh root@$wip "pkill pgm; cd /root/pgm; nohup ./pgm > /dev/null 2>&1 &" echo "$wip end" done < ips.txt I am running the above script. But the problem is after reading the first ip the loop exits. But

Git ask for SSH passphrase even if present in ssh-agent

痴心易碎 提交于 2021-01-27 21:23:18
问题 I use git with ssh-agent on a daily basis on my Mac and it works flawlessly. However, on my remote development server, I should miss something because I can't bypass the prompt for the SSH password when doing remote git operations . Setup The key is listed in the ssh-agent: ssh-add -L : ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCktk2+zRYGy0RdM6HJ8JFVPjiNknK7iN8ohdCGSX9fPQ.... /home/user/.ssh/id_rsa.from_user@server_to_git@bitbucket The key is associated to bitbucket in ~/.ssh/config : Host *

How to fix Cygwin using wrong .ssh directory no matter what I do?

柔情痞子 提交于 2021-01-27 18:54:26
问题 On my Cygwin machine $HOME is cygwdrive/c/Users/me (i.e. not the sometimes default of /home/me ) which I appreciate. However, when I am using git, and trying to use ssh keys, it always checks in /home/me/.ssh for my keys. To get around this, I tried this solution however, putting a config file in ~/.ssh doesn't work because I then have copy that same file to /home/me/.ssh because that is where git (when run from Cygwin) looks. Is there some way I can avoid this? As it stands right now I have

Why does ssh-agent need root access?

自闭症网瘾萝莉.ら 提交于 2021-01-27 06:06:47
问题 I've just installed Archbang, and am trying to clone a Git project of mine, which necessitates SSH keys. I've followed the Github guide to success in the past, on Ubuntu and RedHat boxes, but for some reason it's not working out for me on my new Arch install. I've successfully generated my SSH public/private key pairs with this command: ssh-keygen -t rsa -b 4096 -C "email@address" But when I move on to starting up the SSH agent and adding my public key, I run into issues. [user@arch ~]$ eval