Using WinSCP to connect Windows Client to Linux server

I am trying to understand how to set up an SFTP connection between Windows 7 PCs (yes, these PCs will be supported through part of next year) to a Linux Server. I think I’m finally getting it – but it’s the where to put things and how to actually connect that I’m not following.

I’m testing all of this out in a test lab before these new Linux Servers go out. I have generated a key pair. I’ve given the public key to my test server admin, who has placed it in /root/.ssh/authorized_keys (is this the correct location?) on the Linux server.

I have placed my private key in \Users\user\.ssh\keyname.ppk on my Windows PC. Is that correct?

And now I am trying to write a test batch script that will create a .dat file with my connection command, my PUT and GET commands, and which will be called by WinSCP to connect to that server and run those commands. If I can get this working, I will be using this same batch code and WinSCP call in several different scripts which currently use FTP, not SFTP.

What I’m not sure how do is how to connect. I have the call to my .dat file –

winscp /script=\temp\sftp.dat 

But my current authentication method is to use a username/password combination – here is the first line of the .dat file:

open sftp://username:password@servername -hostkey="ssh-ed25519 xxxxxxxxxxxx"         

…but username/password authentication will not be available to me. So how do I connect with just the key pair? Is there a particular line I need to write in place of that open sftp line for it to connect?

Is it possible to safely connect to the internet using a malicious router?

If you connect to a router that’s controlled by a hacker, is there some way you can safely surf the internet without getting hacked? By using a vpn and firewall maybe?

Does it make a difference what kind of router it is?

1) A wired router

2) A wireless router

3) A 4g usb dongle ( Could this be used for a bad usb attack?)

Using Marching Squares to connect curve ends in adjoining squares

I’m learning Marching squares for a graphic program I’m working on and, while I understand how to connect points along an edge of a single square depending on the vertex values, I am unclear about how to connect two curves belonging to adjoining squares.

The part I’m trying to understand is this:

Marching square image

Say I’m linearly interpolating along edge (a, b) of Square X and there is a zero crossing somewhere after the midpoint c – let the zero crossing be at 0.75 along edge ab. This is point f.
To get rid of the ambiguity, I divide square Y into four squares – Y1 through Y4. Now say while I interpolate along the smaller edge ca, I encounter a zero crossing before the midpoint of ca – let the zero crossing be at 0.25 of edge ca. This is point g.

  1. How should I resolve the vertex values (0 or 1) of the squares?
  2. How can I connect the two curve ends (in green)?

Connect excel to access to Sharepoint

Im trying to sync excel and Sharepoint so I can update an excel table and changes appears in sharepoint. Since I’m using 2016 versions for excel and Sharepoint I noticed it’s not as easy because I need a third party to do a 2-way sync. I came up with the idea of connecting excel to access and acces to Sharepoint. I was able to sync excel with access and access with Sharepoint. The problem is when trying to link excel to access table and that same access table link it to sharepoint. Doing that I lose the link between excel and access but if I update table in access it appears updated in Sharepoint. It is possible to have two links to the same table in access. What I am doing wrong? I think this is a simple way; otherwise I’ll need PHP, Javascript, ODBC, ActiveXObject, etc. Any help will be great!!

Thanks in advance

Connect O365 group to SharePoint Online team site

In the past I’ve created some O365 groups (some with over 200 members).

I would like to create SharePoint Online team sites and connect to groups I’ve already made.

Is that possibile? It seems that creating sites from SharePoint Online Admin Center I’ve the only option to create a new site and at the same time a new O365 group.

Any suggestion on how can I connect a team site to an already created O365 group?

Not able to connect to internet when both ethernet and wifi is connected in Ubuntu 16.04

I have Ubuntu 16.04 (machine 1) and Windows 10 (machine2). I have connected the ubuntu to the wifi with IP and I can browse internet easily.

I have to do remote C++ development on ubuntu from windows using Visual studio. I have connected the Ethernet cable between ubuntu and windows. On both the side I have set the static IP i.e. ubuntu has and windows has I can ping windows from ubuntu and vice versa. But when I try to browse internet on Ubuntu, its not working. If I disconnect wired connection from ubuntu, I can browse the internet fine. I don’t know what I have done wrong here due to which I am not able to connect to internet on Ubuntu.

Can anyone please suggest any idea. Thanks

Do they players know when their attacks connect?

Now, this is a pretty odd question to ask, maybe. But depending on the narrative style of the game, “hitting their armor class” doesn’t always mean you physically struck your opponent with your weapon. Personally I like to describe a “hit” as “you actually had to put effort into not getting stabbed by that sword.” In general, at least.

However in this narrative style raises a potentially interesting question, and related DM gimmick*. If an attacker doesn’t really score a meaningful hit until they actually down a monster, do they necessarily know when they are dealing HP damage? It’s pretty common for players in combat to save time by rolling damage dice together with their to-hit die. Could a DM require that of players, taking notes as needed, and only informing the PCs when an attack actually does something (such as downing the target).

*: As a DM I must say that I don’t think this is something I would do in very many cases. Knowing the ballpark of the target’s AC is useful meta-knowledge for the player, which usually doesn’t impact the narrative in any way (beyond “A 14 isn’t good enough to hit this guy, but a 16 is, better use my Bardic Inspiration die”). Whereas being denied it doesn’t necessarily make the experience any better either – in fact, it would probably introduce frustration for some players (“Man, are we even hurting this guy?!”).

Connect to Sharepoint Online REST API using Java

I’m trying to connect Sharepoint online REST API using Java. Retrieved cookies -rtfa and fedAuth. Also got xForm Digest value and trying to authenticate. But it always throws Authentication error.

private void getSharePointContents(String rtFa, String fedAuth, String XRequestDigest,String sharePointServerUrl) {     DefaultHttpClient httpClient = new DefaultHttpClient();      try {         HttpGet getRequest = new HttpGet(sharePointServerUrl);         System.out.println("rtfa :"+ rtFa + "\n , FedAuth: " +fedAuth + "\n XRequestDigest: "+XRequestDigest);         getRequest.addHeader("Cookie", "rtFa="+rtFa+";FedAuth="+fedAuth);         getRequest.addHeader("Authorization", "Bearer"+XRequestDigest);         getRequest.addHeader("accept", "application/json");          HttpResponse response = httpClient.execute(getRequest);          if (response.getStatusLine().getStatusCode() == 200) {                            BufferedReader br = new BufferedReader(                     new InputStreamReader((response.getEntity().getContent())));             String output;             while ((output = br.readLine()) != null) {                 System.out.println(output);             }         }else{             System.out.println(response.getStatusLine().getStatusCode());             throw new RuntimeException("Failed : HTTP error code : "                     + response.getStatusLine().getStatusCode());         }      } catch (ClientProtocolException e) {         e.printStackTrace();     } catch (IOException e) {         e.printStackTrace();     }finally {         httpClient.getConnectionManager().shutdown();     } 

This is the error i’m getting:

Apr 03, 2018 3:59:46 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse WARNING: Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer realm=””,client_id=””,trusted_issuers=””,authorization_uri=””} 401 Exception in thread “main” java.lang.RuntimeException: Failed : HTTP error code : 401 at com.sharepointOnline.SharepointOnlineAuthenticator.getFolderByServerRelativeUrl( at com.sharepointOnline.SharepointOnlineAuthenticator.main(

Can someone please help with this error?