New answers tagged

0 votes

How to get the ip address that i have ssh'ed into?

As @vidarlo already stated, this can not be done 100% reliably - however I think I can answer the question you might actually have: Lets assume that you ssh-ed into an ec2 instance on amazon aws, ...
fmueller's user avatar
2 votes

Linux server: apt-get update "Could not get lock" error

root 2306449 0.0 0.0 2576 924 ? Ss Mar12 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update This is a daily process that updates repositories. Killing it should be fine; a apt ...
vidarlo's user avatar
  • 9,092
1 vote
Accepted

Understand SSH AgentForwarding per Host specification

Host is supposed to match a hostname given as a command line argument to ssh, like ssh host. It can be a pattern with wildcards like * or ?. It doesn't include a username. When you connect with a ...
AlexD's user avatar
  • 10.1k
0 votes

Connection closed by UNKNOWN port 65535 when SSH using AD Creds on RHEL Machine

For Case B above. Our problem was the pause for 60 seconds which was caused by an incorrect IP subnet mask. Once corrected SSH worked perfectly.
mickelean's user avatar
0 votes

SSH Connection Issue: ssh -o MACs=hmac-sha2-256 works, but ssh without options doesn't

I have precisely the same issue. It is especially perplexing since I setup my servers with ansible and only ONE has this issue.
cocoonkid's user avatar
0 votes
Accepted

Ssh hang after execute some command

The command ssh executed is a script. It turns out it contains some commands runs in background: CMD_Background & I changed them to: CMD_Background 2>&1 </dev/null & By redirecting ...
xlleon's user avatar
  • 1
1 vote
Accepted

SSH through squid proxy running on the same server

Squid is a HTTP(S) proxy. SSH has its own protocol, which is not compatible with HTTP(S). Therefore you cannot use Squid for this purpose. You should use a dynamic DNS provider that maps a domain name ...
Tero Kilkanen's user avatar
2 votes
Accepted

SAP external command using lftp over sftp

Here is the working solution for me: SFTP_COMMAND="sftp -o Port=$PORT -o IdentityFile=$KEYFILE -o BatchMode=yes $USER@$HOST" $SFTP_COMMAND <<EOF cd $REMOTE_DIR lcd $LOCAL_DIR mget *....
zaveryukha's user avatar
0 votes

OpenSSH server limit local forwarding to only unix sockets

(should be a comment but limited space / formatting) PermitOpen allows only host:port notation, i.e., it is not possible to allow only unix-sockets. According to the link you posted: An argument of ...
symcbean's user avatar
  • 22.3k
2 votes

Cannot ssh into my vps ipv6 ip : Network is unreachable

Trying to ping googles ipv6 - 2a00:1450:4001:806::200e - from my linux machine also returns Network is unreachable You don't have functioning IPv6. If your ISP is not able to give you this you may ...
vidarlo's user avatar
  • 9,092
1 vote

No SSH access to EC2 instance launched by ASG, while I can access an otherwise identical instance

I was able to resolve this by increasing the storage for the instance. In this case, from 30 to 60 GB. The image(s) are quite large (~15 GB) and also downloads an additional model on initialization. I ...
user2879764's user avatar
1 vote

protocol version mismatch -- is your shell clean?

I found another case, if the default shell of your server is zsh, then you need to check other files like .zshenv, .zprofile, .zshrc etc. Avoid them having "echo" Use @Stabledog 's method ...
Zhuoqun Chen's user avatar
2 votes

Piping SSH to wireshark on windows

Piggy backing on @krylon's answer, I was able to use git-bash to run this with the following one-line command: (Based off the answers here: How can I sniff the traffic of remote machine with wireshark?...
bjg222's user avatar
  • 121
0 votes

GNU Rush invalid uid

I faced similar issue when using rush with ssh. you need to copy passwd,shadow and groups file to the chroot location. after copying from /etc to etc inside the chroot location like your chroot loc/...
Mohsin Khan's user avatar
0 votes

How do I tell Git for Windows where to find my private RSA key?

This is not an answer, but it might still help some who who find this question only since they think they need a key pair authentication and oversee that there is another way as well: I could clone ...
questionto42's user avatar
1 vote

How do I connect to ssh with a different public key?

The questioner specifically asked about how they would connect to two different groups of servers using two different public keys, yet the answers see at the time of writing this appear to me to be ...
Programster's user avatar

Top 50 recent answers are included