« first day (1862 days earlier)      last day (1191 days later) » 

5:57 AM
@Queen k oguz ismail
 
 
2 hours later…
8:21 AM
I am a bit surprised by the merge of my question:
7
Q: Assign and use of a variable in the same subshell

fedorqui 'SO stop harming'I was doing something very simple like: v=5 echo "$v" and expected it to print 5. However, it does not. The value that was just set is not available for the next command. I recently learnt that "In most shells, each command of a pipeline is executed in a separate SubShell". However, in this case...

oguz ismail dupe hammer closed it against this one:
93
Q: Why can't I specify an environment variable and echo it in the same command line?

sdaauConsider this snippet: $ SOMEVAR=AAA $ echo zzz $SOMEVAR zzz zzz AAA zzz Here I've set $SOMEVAR to AAA on the first line - and when I echo it on the second line, I get the AAA contents as expected. But then, if I try to specify the variable on the same command line as the echo: $ SOMEVAR=B...

and I replied explaining that the answer in mine was way better
they mentioned they had flagged it and now I find it is merged
the bad part of it is that the answer in mine is now very deep down in the list of answers of the other
 
 
1 hour later…
9:48 AM
unusual to get something merged in my experience, but I can't say I disagree with the outcome as such ... I can't tell from the timelines what exactly was merged though?
this has been discussed in the SOCVR room as well, maybe follow up there if you want to
oh I see now that Cody marked some answers as migrated from the old question
 
@tripleee my objection is that Charles's answer is now way down the list of answers (and OP is gone, so most probably the check mark won't change)
 
It can be bumped upwards though, I have already upvoted, but can set a bounty and award it to Charles's answer if it'll help
And by the way, I didn't mean any harm, and I'm sorry if I somehow disrespected you
 
10:14 AM
I added a bounty, remind me to award it tomorrow (-:
 
10:25 AM
@tripleee you didn't mention to what answer :P
 
my bad, I didn't remember exactly how it would look while the bounty is running ... thanks for noticing, I'll add a temporary comment
 
@oguzismail it's ok, oguz. It is good to condensate good content in one single place and my question did not have good SEO. Hopefully Charles's answer will go up
 
10:41 AM
I hope so and will do my best to make sure it does. Thanks for understanding
 
 
2 hours later…
2:32 PM
@Queen k with some hesitation
@Queen k
@Queen k
 
 
4 hours later…
6:17 PM
Hello all - wondering if anyone could point me the in the direciton of documentation for my query
I have an Ubuntu VM setup on Azure
on one of my machines i downloaded the provided ssh file and added it to the recommended location and was able to connect to my VM all good so far
now from another laptop I want to do the same thing, I can grab my SSH key from the azure portal - but unsure what commands I should do to add this ssh key to my local env (using WSL linux ubuntu 18.4 if thats of any consequence)
I'm sure this is simple hence my reluctance to ask a question
 
 
1 hour later…
7:44 PM
@Manakin You want to connect from your cloud server to a laptop ?
Generally it's the other way round
anyway you need to copy the public key from the machine you want to connect from to the machine you want to connect to.
actually you need to append it into ~/.ssh/authorized_keys to be precise
 
8:44 PM
@tripleee Time to enable the AI functions :D
 
8:55 PM
@louigi600 yes - sorry that is correct I want to connect to my cloud server from my local machine
lets called the target server S1 - I connected to S1 from one of my local machines - lets calle it H1
Now, I would like to connect to the same azure vm using a different local laptop called H2
whats the correct way to do this generally?
 
ok you will probabbly need a ssh key pair
ssh-keygen -t rsa will create them for you if you don't have
that creates 2 files:
~/.ssh/id_rsa
~/.ssh/id_rsa.pub
 
so I create this on H2 but how do i sync this to s1 ?
 
the pub one is the one you want to apend into the ~/.ssh/authorized_keys on the remote server you want to access
if you have some sort of ssh auth that works without keys you can use ssh-copy-id
 
right, that makes sense got it. So I have to access the server to add a new ssh key-gen.
and this ssh key I've generated I should use it to auth into any server I want access too right? It shouldn't change ?
I shouldn't change it * sorry
 
else you wil need to find another way to append your pub key to the autorized_keys file on the remote machine
 
9:00 PM
okay that makes total sense thanks mate, I've remoted in now.
 
keygen on H2
 
very informative - thanks so much.
 
and append h2's id_rsa.pub in S1's authorized_keys
 

« first day (1862 days earlier)      last day (1191 days later) »