SSH websetup -y “command not found” - Putty (Mac)












0















Our university have given us webspace to host our webpages this term. The instructions given include using SSH client Putty to connect to the server and run the command websetup -y however this is being returned as command not found.



I'm on macOS Mojave and I've put my files in the public_html folder using my FTP client (Transmit). I'm also aware SSH is built in to Terminal and can successful connect to the server that way.



I tried the MacPorts version of Putty just in case there was anything different about using Putty itself and can successfully connect however I get the same 'command not found' when trying websetup.



My understanding is the Putty is just to connect to server so I feel it's unnecessary when I can use SSH in the Terminal, however the site itself is unreachable: curl finds a 302 temporary redirect to a 404 page.
curl 302 error



I've been able to find very little about the websetup command online so i'm not entirely sure what it's intended for? I got the impression that it may be to do with permissions however even when I (temporarily) chmod to 777 the site is still unreachable.



If it helps, my $PATH variable is currently set to:
$PATH variable



Can anyone point me in the right direction? Is this an issue on my University's end rather than mine?










share|improve this question




















  • 1





    You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

    – lx07
    Feb 2 at 18:56













  • Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

    – Daniel Mclaughlan
    Feb 2 at 21:02
















0















Our university have given us webspace to host our webpages this term. The instructions given include using SSH client Putty to connect to the server and run the command websetup -y however this is being returned as command not found.



I'm on macOS Mojave and I've put my files in the public_html folder using my FTP client (Transmit). I'm also aware SSH is built in to Terminal and can successful connect to the server that way.



I tried the MacPorts version of Putty just in case there was anything different about using Putty itself and can successfully connect however I get the same 'command not found' when trying websetup.



My understanding is the Putty is just to connect to server so I feel it's unnecessary when I can use SSH in the Terminal, however the site itself is unreachable: curl finds a 302 temporary redirect to a 404 page.
curl 302 error



I've been able to find very little about the websetup command online so i'm not entirely sure what it's intended for? I got the impression that it may be to do with permissions however even when I (temporarily) chmod to 777 the site is still unreachable.



If it helps, my $PATH variable is currently set to:
$PATH variable



Can anyone point me in the right direction? Is this an issue on my University's end rather than mine?










share|improve this question




















  • 1





    You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

    – lx07
    Feb 2 at 18:56













  • Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

    – Daniel Mclaughlan
    Feb 2 at 21:02














0












0








0








Our university have given us webspace to host our webpages this term. The instructions given include using SSH client Putty to connect to the server and run the command websetup -y however this is being returned as command not found.



I'm on macOS Mojave and I've put my files in the public_html folder using my FTP client (Transmit). I'm also aware SSH is built in to Terminal and can successful connect to the server that way.



I tried the MacPorts version of Putty just in case there was anything different about using Putty itself and can successfully connect however I get the same 'command not found' when trying websetup.



My understanding is the Putty is just to connect to server so I feel it's unnecessary when I can use SSH in the Terminal, however the site itself is unreachable: curl finds a 302 temporary redirect to a 404 page.
curl 302 error



I've been able to find very little about the websetup command online so i'm not entirely sure what it's intended for? I got the impression that it may be to do with permissions however even when I (temporarily) chmod to 777 the site is still unreachable.



If it helps, my $PATH variable is currently set to:
$PATH variable



Can anyone point me in the right direction? Is this an issue on my University's end rather than mine?










share|improve this question
















Our university have given us webspace to host our webpages this term. The instructions given include using SSH client Putty to connect to the server and run the command websetup -y however this is being returned as command not found.



I'm on macOS Mojave and I've put my files in the public_html folder using my FTP client (Transmit). I'm also aware SSH is built in to Terminal and can successful connect to the server that way.



I tried the MacPorts version of Putty just in case there was anything different about using Putty itself and can successfully connect however I get the same 'command not found' when trying websetup.



My understanding is the Putty is just to connect to server so I feel it's unnecessary when I can use SSH in the Terminal, however the site itself is unreachable: curl finds a 302 temporary redirect to a 404 page.
curl 302 error



I've been able to find very little about the websetup command online so i'm not entirely sure what it's intended for? I got the impression that it may be to do with permissions however even when I (temporarily) chmod to 777 the site is still unreachable.



If it helps, my $PATH variable is currently set to:
$PATH variable



Can anyone point me in the right direction? Is this an issue on my University's end rather than mine?







command-line ssh terminal putty






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 2 at 18:43







Daniel Mclaughlan

















asked Feb 2 at 18:36









Daniel MclaughlanDaniel Mclaughlan

32




32








  • 1





    You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

    – lx07
    Feb 2 at 18:56













  • Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

    – Daniel Mclaughlan
    Feb 2 at 21:02














  • 1





    You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

    – lx07
    Feb 2 at 18:56













  • Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

    – Daniel Mclaughlan
    Feb 2 at 21:02








1




1





You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

– lx07
Feb 2 at 18:56







You are saying you can log on to the server using ssh but then when you try to run a command it says "not found"? That is websetup is a command you are supposed to run on the server after connecting? It would be more interesting to see the path once you are connected rather than the path on your Macbook if so. It sounds like problem at the University end really.

– lx07
Feb 2 at 18:56















Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

– Daniel Mclaughlan
Feb 2 at 21:02





Yes, the guide we have says to connect via SSH using Putty (but I can connect successfully using Putty or Terminal) then run the websetup command. The path being connected to via SSH is #######@unix.city.ac.uk where ####### is my username and city.ac.uk is the University's domain.

– Daniel Mclaughlan
Feb 2 at 21:02










1 Answer
1






active

oldest

votes


















0














It sounds VERY much like this "websetup" command is a script/program custom to your university - it is certainly not a "standard" way of setting up hosting on a Unix based system.



The issue is not putty or ssh - these simply provide a remote console/terminal.



In short, this "websetup" command is not in the path or does not exist, and is most likely a problem with the university setup - that is to say that the issue is on the Universities end rather then yours - so I'd query someone there.



You might be able to find the command by using "find / -type f -name "websetup", but I'm not sure I would advise it as this could take significant resources on the server and may be undesirable.



You might also want to try (at least temporarily) changing the permissions on the public_html directory and files to world readable - its possible this is not a default, and a cause of your issue, but I suspect this is a bit unlikely.






share|improve this answer
























  • Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

    – Daniel Mclaughlan
    Feb 2 at 21:07











  • Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

    – Daniel Mclaughlan
    Feb 2 at 21:24













  • The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

    – lx07
    Feb 2 at 21:33











  • Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

    – Daniel Mclaughlan
    Feb 8 at 12:57











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401378%2fssh-websetup-y-command-not-found-putty-mac%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









0














It sounds VERY much like this "websetup" command is a script/program custom to your university - it is certainly not a "standard" way of setting up hosting on a Unix based system.



The issue is not putty or ssh - these simply provide a remote console/terminal.



In short, this "websetup" command is not in the path or does not exist, and is most likely a problem with the university setup - that is to say that the issue is on the Universities end rather then yours - so I'd query someone there.



You might be able to find the command by using "find / -type f -name "websetup", but I'm not sure I would advise it as this could take significant resources on the server and may be undesirable.



You might also want to try (at least temporarily) changing the permissions on the public_html directory and files to world readable - its possible this is not a default, and a cause of your issue, but I suspect this is a bit unlikely.






share|improve this answer
























  • Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

    – Daniel Mclaughlan
    Feb 2 at 21:07











  • Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

    – Daniel Mclaughlan
    Feb 2 at 21:24













  • The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

    – lx07
    Feb 2 at 21:33











  • Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

    – Daniel Mclaughlan
    Feb 8 at 12:57
















0














It sounds VERY much like this "websetup" command is a script/program custom to your university - it is certainly not a "standard" way of setting up hosting on a Unix based system.



The issue is not putty or ssh - these simply provide a remote console/terminal.



In short, this "websetup" command is not in the path or does not exist, and is most likely a problem with the university setup - that is to say that the issue is on the Universities end rather then yours - so I'd query someone there.



You might be able to find the command by using "find / -type f -name "websetup", but I'm not sure I would advise it as this could take significant resources on the server and may be undesirable.



You might also want to try (at least temporarily) changing the permissions on the public_html directory and files to world readable - its possible this is not a default, and a cause of your issue, but I suspect this is a bit unlikely.






share|improve this answer
























  • Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

    – Daniel Mclaughlan
    Feb 2 at 21:07











  • Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

    – Daniel Mclaughlan
    Feb 2 at 21:24













  • The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

    – lx07
    Feb 2 at 21:33











  • Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

    – Daniel Mclaughlan
    Feb 8 at 12:57














0












0








0







It sounds VERY much like this "websetup" command is a script/program custom to your university - it is certainly not a "standard" way of setting up hosting on a Unix based system.



The issue is not putty or ssh - these simply provide a remote console/terminal.



In short, this "websetup" command is not in the path or does not exist, and is most likely a problem with the university setup - that is to say that the issue is on the Universities end rather then yours - so I'd query someone there.



You might be able to find the command by using "find / -type f -name "websetup", but I'm not sure I would advise it as this could take significant resources on the server and may be undesirable.



You might also want to try (at least temporarily) changing the permissions on the public_html directory and files to world readable - its possible this is not a default, and a cause of your issue, but I suspect this is a bit unlikely.






share|improve this answer













It sounds VERY much like this "websetup" command is a script/program custom to your university - it is certainly not a "standard" way of setting up hosting on a Unix based system.



The issue is not putty or ssh - these simply provide a remote console/terminal.



In short, this "websetup" command is not in the path or does not exist, and is most likely a problem with the university setup - that is to say that the issue is on the Universities end rather then yours - so I'd query someone there.



You might be able to find the command by using "find / -type f -name "websetup", but I'm not sure I would advise it as this could take significant resources on the server and may be undesirable.



You might also want to try (at least temporarily) changing the permissions on the public_html directory and files to world readable - its possible this is not a default, and a cause of your issue, but I suspect this is a bit unlikely.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 2 at 19:28









davidgodavidgo

44.3k75292




44.3k75292













  • Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

    – Daniel Mclaughlan
    Feb 2 at 21:07











  • Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

    – Daniel Mclaughlan
    Feb 2 at 21:24













  • The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

    – lx07
    Feb 2 at 21:33











  • Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

    – Daniel Mclaughlan
    Feb 8 at 12:57



















  • Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

    – Daniel Mclaughlan
    Feb 2 at 21:07











  • Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

    – Daniel Mclaughlan
    Feb 2 at 21:24













  • The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

    – lx07
    Feb 2 at 21:33











  • Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

    – Daniel Mclaughlan
    Feb 8 at 12:57

















Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

– Daniel Mclaughlan
Feb 2 at 21:07





Thanks David, what's strange is I found another university with a tutorial saying to run the same command but I can't find any documentation on it. As you say, it might be a custom script and it's not impossible that it'd be available to multiple universities. I tried temporarily making public_html and all files bellow world readable without success. I've reached out to the university on this. I'm glad it sounds like i'm not missing the obvious.

– Daniel Mclaughlan
Feb 2 at 21:07













Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

– Daniel Mclaughlan
Feb 2 at 21:24







Update : Decided to have a go with the find command and did actually find both websetup and run-websetup. The former is a perl script and the latter a shell script but no further forward than that. I'll see what our IT services have to say and update my question as soon as I get answer.

– Daniel Mclaughlan
Feb 2 at 21:24















The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

– lx07
Feb 2 at 21:33





The name "websetup" is hardly unique - I'd probably call a script to do some web set-up "websetup". I can see a couple (Cisco and calpoly.edu) on Google but I think you are correct - ask IT. @davidgo is right - it is not putty issue - you can use putty or "ssh" (from terminal in either macOS or Windows) and you should see this command if it is in the path you get after log-on.

– lx07
Feb 2 at 21:33













Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

– Daniel Mclaughlan
Feb 8 at 12:57





Many, many thanks for the help with this both. It turns out it was a permissions issue with a hidden file in the root directory that did not have execute rights. All fixed now.

– Daniel Mclaughlan
Feb 8 at 12:57


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1401378%2fssh-websetup-y-command-not-found-putty-mac%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀