How do I transfer a .cpp and .h file from my local Mac laptop to my ssh linprog account for my uni's...
This is the command I am inputting into terminal:
scp /OOP_HW_M/House.cpp username@linprog:/OOP_HW
to transfer my source code file from my laptop to my linprog account
on my university's compiling system.
Output:
/OOP_HW_M/House.cpp: No such file or directory.
So then I tried to make a new file and to transfer that,
but that's also not working.
mac ssh unix
add a comment |
This is the command I am inputting into terminal:
scp /OOP_HW_M/House.cpp username@linprog:/OOP_HW
to transfer my source code file from my laptop to my linprog account
on my university's compiling system.
Output:
/OOP_HW_M/House.cpp: No such file or directory.
So then I tried to make a new file and to transfer that,
but that's also not working.
mac ssh unix
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50
add a comment |
This is the command I am inputting into terminal:
scp /OOP_HW_M/House.cpp username@linprog:/OOP_HW
to transfer my source code file from my laptop to my linprog account
on my university's compiling system.
Output:
/OOP_HW_M/House.cpp: No such file or directory.
So then I tried to make a new file and to transfer that,
but that's also not working.
mac ssh unix
This is the command I am inputting into terminal:
scp /OOP_HW_M/House.cpp username@linprog:/OOP_HW
to transfer my source code file from my laptop to my linprog account
on my university's compiling system.
Output:
/OOP_HW_M/House.cpp: No such file or directory.
So then I tried to make a new file and to transfer that,
but that's also not working.
mac ssh unix
mac ssh unix
edited Jan 26 at 6:47
Scott
15.8k113990
15.8k113990
asked Jan 26 at 2:38
Henry VEHenry VE
114
114
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50
add a comment |
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50
add a comment |
1 Answer
1
active
oldest
votes
Since you're able to connect via ssh, one method of copying your file(s) over is to use the scp
(secure copy) command.
From https://en.wikipedia.org/wiki/Secure_copy:
Secure Copy Protocol. The SCP is a network protocol, based on the BSD
RCP protocol, which supports file transfers between hosts on a
network. SCP uses Secure Shell (SSH) for data transfer and uses the
same mechanisms for authentication, thereby ensuring the authenticity
and confidentiality of the data in transit.
In your case you'll want to run this command from your local computer:
scp ~/OOP_HW_M/House.cpp username@linprog:~/OOP_HW/
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398632%2fhow-do-i-transfer-a-cpp-and-h-file-from-my-local-mac-laptop-to-my-ssh-linprog%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Since you're able to connect via ssh, one method of copying your file(s) over is to use the scp
(secure copy) command.
From https://en.wikipedia.org/wiki/Secure_copy:
Secure Copy Protocol. The SCP is a network protocol, based on the BSD
RCP protocol, which supports file transfers between hosts on a
network. SCP uses Secure Shell (SSH) for data transfer and uses the
same mechanisms for authentication, thereby ensuring the authenticity
and confidentiality of the data in transit.
In your case you'll want to run this command from your local computer:
scp ~/OOP_HW_M/House.cpp username@linprog:~/OOP_HW/
add a comment |
Since you're able to connect via ssh, one method of copying your file(s) over is to use the scp
(secure copy) command.
From https://en.wikipedia.org/wiki/Secure_copy:
Secure Copy Protocol. The SCP is a network protocol, based on the BSD
RCP protocol, which supports file transfers between hosts on a
network. SCP uses Secure Shell (SSH) for data transfer and uses the
same mechanisms for authentication, thereby ensuring the authenticity
and confidentiality of the data in transit.
In your case you'll want to run this command from your local computer:
scp ~/OOP_HW_M/House.cpp username@linprog:~/OOP_HW/
add a comment |
Since you're able to connect via ssh, one method of copying your file(s) over is to use the scp
(secure copy) command.
From https://en.wikipedia.org/wiki/Secure_copy:
Secure Copy Protocol. The SCP is a network protocol, based on the BSD
RCP protocol, which supports file transfers between hosts on a
network. SCP uses Secure Shell (SSH) for data transfer and uses the
same mechanisms for authentication, thereby ensuring the authenticity
and confidentiality of the data in transit.
In your case you'll want to run this command from your local computer:
scp ~/OOP_HW_M/House.cpp username@linprog:~/OOP_HW/
Since you're able to connect via ssh, one method of copying your file(s) over is to use the scp
(secure copy) command.
From https://en.wikipedia.org/wiki/Secure_copy:
Secure Copy Protocol. The SCP is a network protocol, based on the BSD
RCP protocol, which supports file transfers between hosts on a
network. SCP uses Secure Shell (SSH) for data transfer and uses the
same mechanisms for authentication, thereby ensuring the authenticity
and confidentiality of the data in transit.
In your case you'll want to run this command from your local computer:
scp ~/OOP_HW_M/House.cpp username@linprog:~/OOP_HW/
edited Jan 26 at 4:02
answered Jan 26 at 2:53
n8ten8te
4,86572233
4,86572233
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1398632%2fhow-do-i-transfer-a-cpp-and-h-file-from-my-local-mac-laptop-to-my-ssh-linprog%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Normally you can use scp with the same credentials as ssh to.move files. Alternatively, see if you xan find an sftp which provides ftp type semantics over ssh if its not been disabled.
– davidgo
Jan 26 at 2:50